A Point of Sale web app for businesses built with Python and Django for learning purposes.
- Login Page with User authentication
- Dashboard Page with statistics and graphs
- DataTables with print, copy, to CSV, and to PDF buttons
- Categories and Products Management
- Clients Management
- Sales Management
- Frontend: HTML, CSS, JavaScript, Boostrap, SweetAlert, DataTables
- Backend: Django, Python, Ajax, SQLite
- Clone or download the repository:
git clone https://github.com/betofleitass/django_point_of_sale
- Go to the project directory
cd django_point_of_sale
- Create a virtual environment :
PowerShell:
python -m venv venv
venv\Scripts\Activate.ps1
Linux:
python3 -m venv venv
source venv/bin/activate
-
Install dependencies:
pip install -r requirements.txt
-
Update pip and setuptools
python -m pip install --upgrade pip setuptools
-
Install GTK to create the PDF files:
Official documentation -
Windows Users (IMPORTANT)‼:
Only Windows 11 64-bit is supported ‼
After installing GTK, you need to add it to your system's Path environment variable. Follow these steps:
-
Assuming you installed GTK at:
C:\Program Files\GTK3-Runtime Win64\bin
This will be your new variable that you need to add to Path -
Refer to this tutorial for detailed instructions on adding to the Path environment variable: Tutorial add to the Path enviroment variable
-
If you encounter an error such as "cannot load library," refer to this documentation for troubleshooting: Missing Library Error
-
-
Restart your computer: After completing the steps above, it is essential to restart your computer for the changes to take effect properly. ‼
After restarting your computer
-
Go to the project directory:
cd django_point_of_sale
-
Activate the virtual enviroment
PowerShell:
venv\Scripts\Activate.ps1
Linux:
source venv/bin/activate
-
Go to the django_pos folder:
cd django_pos
-
Make database migrations:
python manage.py makemigrations
andpython manage.py migrate
-
Create superuser
python manage.py createsuperuser
with the following data, or with the data you prefer:
username: admin, password: admin, email: admin@admin
-
Run the server:
python manage.py runserver
-
Open a browser and go to:
http://127.0.0.1:8000/
-
Log In with your superuser credentials.
Contributions are always welcome!
-
Fork this repository;
-
Create a branch with your feature:
git checkout -b my-feature
; -
Commit your changes:
git commit -m "feat: my new feature"
; -
Push to your branch:
git push origin my-feature
.
This project is under MIT License.