This is an example template on how you can structure your Fatsapi project. It includes deployment configuration for Nginx, Gunicorn and Supervisor.
NOTE: Install Python >= 3.6 as most of project dependencies are not compatible below that version.
$ git clone <project-git-url>Change your directory to cloned repository usind
$ cd backend-demo-analyticsThere is setup.sh script at root. You can execute it using source ./setup.sh and it will do all the work for you.
Inside your cloned repository directory, run following commands:
$ python3 -m venv venv$ source venv/bin/activate$ pip install -r requirements.txtOnce all dependencies are installed, you can start your server via terminal using manage.py script.
$ python src/manage.py serveand kill the server using ctrl+c.
Note: Make sure you create a
.envfile outsidesrcfolder and change environment variables as per your requiremnts that are being used incore.settings.py.