Skip to content

mbrsagor/pos

Repository files navigation

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, 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

Run server locally

./manage.py migrate
./manage.py runserver
If PSQL error raise please follow the command:

pip install psycopg2-binary

About

The web app is a simple point of sales and inventory management system web-app

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published