Point of Sale web app for businesses made 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 Management (CRUD)
- Products Management (CRUD)
- Point of Sale (POS)
- Search and add product to list
- Calculate automatically the subtotal, grand total, tax amount
- Remove product from the list
- Update Item Quantity and Recalculate Total
- Choose sale customer
- Sale validation paid amount and at least one product
- Sales Management
- List all Sales
- View Sale details
- Print Sale Receipt
- 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 -
If you have Windows (Important)‼:
Add GTK to your path variables, suppose you installed GTK at:
C:\Program Files\GTK3-Runtime Win64\bin
That will be your new path variable
- Restart your computer
-
Go to the project directory:
cd django_point_of_sale
-
Make database migrations:
python manage.py makemigrations
andpython manage.py migrate
-
Create superuser
python manage.py createsuperuser
with the following data:
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/
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.