- Navigate to the location where the cloned project will be pulled into.
- Use the command line to run
git clone <code_url>
whereby thecode_url
is found in github repo. - Navigate to the
BITESAPP
folder. - Initiate the command in the terminal to make a virtual environment.
python -m venv venv
- Install the requirements by using the command
pip install -r requirements.txt
. - Create the required db and user in psql and remember to change the
DATABASES
dictionary settings includingHOST
ANDPORT
insettings.py
andPASSWORD
,NAME
andUSER
in .env file. - Make migrations
python manage.py makemigrations
. - Migrate
python manage.py migrate
. - In the terminal within the
BITESAPP
folder, create a superuser using the commandpython manage.py createsuperuser
. Fill in theusername
,email
andpassword
. - Run the live-server
python manage.py runserver
.
- Create
.env
file and place it into the same directory with settings.py - Final step is; Inside the .env file add the following lines:
SECRET_KEY=
secret_key
which is obtained by generating at djecrety
NAME=database_name
USER=user_name_db
PASSWORD=your_password
NOTE: Don't leave any spaces i.e it should be: NAME=my_project_db.
More information about django-environ can be found here at ZappyCode or in the official docs