Accounting of material and financial resources of a private enterprise for the production of chocolate products.
The course project was developed as part of the academic year on the subject of DBMS in the third year of the 2nd semester. After implementing this work, I used various technologies, such as the Python programming language
and the framework Django
, Html
, Css
, Bootstrap
, T-SQL
, Microsoft SQL Server
.
In the database, I used objects such as tables
, triggers
, stored procedures
.
In general, the development of an accounting system for a private enterprise has brought me valuable experience and skills that can be applied in future projects and contribute to professional development in the field of programming and software development.
- Installing Python, Microsoft SQL Server:
If you don't have Python
installed, Microsoft SQL Server
.
Go to their official websites and install
- Clone the repository:
$ git clone https://github.com/Nurlis03/course_work.git
$ cd course_work
- Create a virtual environment to install dependencies in and activate it:
$ python -m venv env
$ env/Scripts/activate
- Then install dependencies:
(env)$ pip install -r requirements.txt
Note (env)
in front of the promt. This indicates that this terminal
session operates in a virtual envirounment set up by python -m venv
.
Once pip
has finished downloading the dependencies:
- Configuring the database:
- Open the
database_files
folder, import thePPO3-2-version.bak
, orPPO3-2-version.bacpac
one of them in Microsoft SQL Server Management Studio. - Open SQL Server Configuration Manager and follow these steps:
- Enable TCP/IP protocol.
- Set the port for TCP/IP protocol (port 1433 is usually used).
- Configure database access for your Django project in a file settings.py Specify the following parameters:
DATABASES = {
'default': {
'ENGINE': 'mssql',
'NAME': 'PPO3-2-version',
'USER': 'sa',
'PASSWORD': 'Nurlis2003',
'HOST': 'DESKTOP-VNGU8OG\\SQLEXPRESS',
'PORT': '1433',
'OPTIONS': {
'driver': 'ODBC Driver 17 for SQL Server',
},
},
}
- Run the project:
(env)$ cd chocolate_production
(env)$ python manage.py runserver
- CRUD operations of 7 tables(Budget, Employee, Finished_products, Ingredients, Positions, Raw_material, Units)
- Purchase of raw materials
- Produce products
- Sale of products
- Showing the ingredients of the selected product
I have created separate applications for each table.
Each application has views that render templates.
In view, I mainly used stored procedures that perform the corresponding operations in the database.
I also used pagination for 10 records, which allows for effective interaction with data.
------------------------------Kimbiletov Nurlis Muratovich-----------------------------