The web application is simple Point of sales and inventory management system web-app.
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
- 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 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;
We're using python3 instead of python2.x. If you don't have python3 installed, install Homebrew, then…
brew install python3.8
Assuming you've cloned the repository, open Terminal and cd ~/your/path/to/inventory
.
Create a python virtual environment:
virtualenv venv --python=python3.8
Activate it:
source env/bin/activate
Install the python dependencies which includes django and other libraries.
pip3 install -r requirements.txt
./manage.py migrate
./manage.py runserver
pip install psycopg2-binary