https://github.com/mbrsagor/pos
The web app is a simple point of sales and inventory management system web-app
https://github.com/mbrsagor/pos
django inventory inventory-categories inventory-management postgresql sales
Last synced: about 1 year ago
JSON representation
The web app is a simple point of sales and inventory management system web-app
- Host: GitHub
- URL: https://github.com/mbrsagor/pos
- Owner: mbrsagor
- Created: 2020-10-22T19:19:51.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-01T02:19:07.000Z (almost 5 years ago)
- Last Synced: 2025-04-08T08:05:51.796Z (about 1 year ago)
- Topics: django, inventory, inventory-categories, inventory-management, postgresql, sales
- Language: JavaScript
- Homepage:
- Size: 14.9 MB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# POS = Point of sales
> The web application is simple Point of sales and inventory management system web-app.
#### Features:
Configuration:
- Inventory Categories
- Inventory Sub Category
- Inventory Tag
Inventory Information:
- Inventory name
- Inventory short description
- Inventory full description
- Inventory category selection
- Inventory picture
- Inventory current stock
- Inventory purchase price
- Inventory sales price
- Inventory promotional price
POS:
- Product Sales
- List of sale record
- Invoice
## Setup & dependencies
- Python 3.8.5
- Django 3.1.2
- Postgres 12.5
The following steps will walk you thru installation on a Mac. Linux should be similar.
It's also possible to develop on a Windows machine, but I have not documented the steps.
If you've developed django apps on Windows, you should have little problem getting
up and running.
### Create Database
Create the database by running the following commands in a psql shell. If you're using
Postgres.app, click the Postgres.app icon in your toolbar and select "Open psql".
```
create database "inventory";
create user "macair";
ALTER ROLE "inventory" WITH PASSWORD 'inventory';
ALTER USER macair CREATEDB;
CREATE EXTENSION postgis;
```
### Setup Django Server (Mac)
We're using python3 instead of python2.x. If you don't have python3 installed,
install [Homebrew](http://brew.sh), then…
```
brew install python3.8
```
Assuming you've cloned the repository, open Terminal and `cd ~/your/path/to/inventory`.
Create a python virtual environment:
```bash
virtualenv venv --python=python3.8
```
Activate it:
```bash
source env/bin/activate
```
Install the python dependencies which includes django and other libraries.
```
pip3 install -r requirements.txt
```
## Run server locally
```
./manage.py migrate
./manage.py runserver
```
###### If PSQL error raise please follow the command:
```pip install psycopg2-binary```