#Installation Steps#
This will all be done from the command line
-
Ensure Python and pip are installed on your system
python -Vwill tell you if python is installedpip -Vwill tell you if pip is installed
-
Once Python and pip are confirmed as installed, install requirements
- From top level directory of this repo, run
pip install -r requirements.txt
- From top level directory of this repo, run
-
In second level directory (where
manage.pyresides)./manage.py migrate./manage.py createsuperuserand follow directions on screen./manage.py shellfrom db_pop import pop_dbpop_db()exit./manage.py runserver 0.0.0.0:8000
You can now access the app at localhost:8000 (or the ip address of wherever your workstation is)
localhost:8000 will give you the point of sale view. Creating a transaction will give you the transaction created view
localhost:8000/create_event/ will give you the create event view (needed to create transactions). Creating an event will give you the event created view
localhost:8000/admin will take you to the admin site (which is already styled, but you can poke around in the backend using your superuser credentials)
Templates can be found in pos/pos/templates/pos CSS and Javascript can go into pos/pos/static. CSS already has a directory, pos/pos/static/css
If installing on a Raspberry Pi, do the following to run the app on boot
sudo vim /etc/rc.local- If vim is not installed, install it using
sudo apt install vim
- If vim is not installed, install it using
- Press
Gto get to the last line of the file (alternatively, just use the arrows all the way down) - Press
O(capital o) to insert above the last line python3 /home/path/to/pos/repo/manage.py runserver 0.0.0.0:8000replacingpath/to/pos/repowith the path to find themanage.pyfile