OrderUp is a Django app built to show a made-up menu of items people can order and allow them to check them out for the "chefs" to create and deliver!
There is no payment system in place so everything is free :D
The platform of choice for demo deployment was Render. The following sections are the steps to deploy
- Create a new Render project through
Blueprints - Select this repository
- Add a name and details, and it should be theoretically done (Untested)
- Create a PostgreSQL database on Render
- (optional) Like in the blueprint
render.yaml, you may use the following settings:- Name:
OrderUp Database - PostgreSQL Version:
15(Higher might work, but this project was built and tested on v15) - Database:
orderup_db - Username:
orderup_admin
- Name:
- All the information needed for set up will be found on the
Infotab underConnectionsafter it has been created
- (optional) Like in the blueprint
- Create a new
Web Serviceand connect it to this repository - Choose
Python 3as the environment of choice - Set the build script as
./build.sh - Set the start script as
cd django && gunicorn OrderUp.wsgi:application - Open
Advancedand set the following environment variables:- Set
PYTHON_VERSIONenvironment variable to3.8.2or a higher Python version number for Render (Default is 3.7 which isn't high enough) - Set
DEBUGtoFalse- You may use
Trueduring the first test deployment but the React frontend will only display at/react/index.htmland other pages will be Django 404s
- You may use
- Set the
SECRET_KEYto the DjangoSECRET_KEY - Set
ALLOWED_HOSTSto a comma-separated list of allowed hosts- After creating the
Web Service, Render will also provide you an[project-name].onrender.comurl, so you should include that through editing in theEnvironmenttab after these instructions end or none of the backend will work
- After creating the
- Set
- Click
Create Web Serviceand it's done!