Floran POS is an ERP solution for Hotel and lounge to manage their business from any device instead of buying POS System
- Inventory management
- Kitchen and restrauant management and service system
- Business Intellegence
- Hotel management
- Easy overall bill genearate for customer
- Staff Management
- Restaurant Management
- Multiple POS system
- Security
Python v.3.8+
Node.JS
create virtual env
pip install virtualenvwrapper-win
mkvirtualenv reactdj
for linux use this command
apt-get install python3-venv
python3 -m venv reactdj
To activate environment
workon reactdj
To activate environment in linux
source reactdj/bin/activate
Copy Paste the following commands to clone the repo
https://github.com/Floran-Github/Floran_POS.git
Go inside the floran_pos_backend directory and install the module from requirements.txt
cd floran_pos_backend
pip install -r requirements.txt
Then make the migrations and then migrate the database
python manage.py makemigrations
python manage.py migrate
Create the superuser
python manage.py createsuperuser
Now run the django server on your local network instead of localhost for react to communicate
python manage.py runserver 0.0.0.0:8000
http://127.0.0.1:8000/api/auth
Now Open the new terminal or CMD and then direct to floran_pos_frontend folder inside the clone directory to run react server
Go inside the floran_pos_frontend directory and install the library
cd floran_pos_frontend
npm install
FOR REACT TO COMMUNICATE WITH DJANGO YOU NEED TO WRITE YOUR IP ADDRESS IN /floran_pos_frontend/src/actions/types.js
ipconfig
NOW IN LINE NUMBER 34 OF /floran_pos_frontend/src/actions/types.js
REPLACE
export const BASE_URL = 'http://192.168.0.179:8000/'
WITH
export const BASE_URL = 'http://<YOUR_IP_ADDRESS>:8000/'
Now Run the script to run react server on your local network
npm run server
If above give webpack Permission Denied error in linux, then run this command
npm install --save-dev webpack
npm run server
http://127.0.0.1:3000/
Here is the admin login id
user:- floranadmin
password:- adminadmin