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
Info
tab underConnections
after it has been created
- (optional) Like in the blueprint
- Create a new
Web Service
and connect it to this repository - Choose
Python 3
as the environment of choice - Set the build script as
./build.sh
- Set the start script as
cd django && gunicorn OrderUp.wsgi:application
- Open
Advanced
and set the following environment variables:- Set
PYTHON_VERSION
environment variable to3.8.2
or a higher Python version number for Render (Default is 3.7 which isn't high enough) - Set
DEBUG
toFalse
- You may use
True
during the first test deployment but the React frontend will only display at/react/index.html
and other pages will be Django 404s
- You may use
- Set the
SECRET_KEY
to the DjangoSECRET_KEY
- Set
ALLOWED_HOSTS
to a comma-separated list of allowed hosts- After creating the
Web Service
, Render will also provide you an[project-name].onrender.com
url, so you should include that through editing in theEnvironment
tab after these instructions end or none of the backend will work
- After creating the
- Set
- Click
Create Web Service
and it's done!