This repo holds the code for the Job Portal server backend.
-
Clone the repo and
cd
into itgit clone https://github.com/G0V1NDS/job-portal.git && cd job-portal;
-
Create the virtualenv
python3 -m venv env
-
Activate the virtualenv
source env/bin/activate
-
Install the requirements
pip install -r requirements.pip
-
Create a file named
.env
in project root, refer.env.example
-
Create database in local mysql, it should have the same name which is defined as
DB_NAME
in .env filecreate database <DB_NAME>
# Run in mysql client -
Use below command to export the variables defined in
.env
set -a; source .env; set +a;
-
Run migrations to generate db tables
python manage.py migrate
-
Creating
admin
userpython manage.py createsuperuser --email admin@example.com --username admin
./manage.py runserver