Kindly follow the following steps to setup
- Clone the repository.
git clone [email protected]:sdslabs/odyssey.git
- Change directory to frontend in odyssey
cd odyssey/frontend/
- Create a file
.env.local
if not present and write the following things in it
NEXTAUTH_URL=Your GitHub OAuth callback url
GITHUB_ID= Your GitHub OAuth Id
GITHUB_SECRET=Your GitHub OAuth Secret
- Next, change the directory to
odyssey/
and run the following command to enter python's virtual environment.
source bin/activate
- Change directory to
backend/
and install the requirements usingpip install
.
pip install -r requirements.txt
- Next, run the following commands,
python manage.py makemigrations
python manage.py migrate odyssey
python manage.py migrate
python manage.py createsuperuser
-
Then create a superuser by filling the required details (username, email, password).
-
Start the server.
python manage.py runserver
-
Go to
localhost:8000/admin
on a browser. -
Click on
Social applications
(in the bottom left). Click on add in front of it.
Select provider as GitHub
Fill any name of your choice
Add Client id (same as added in .env.local in step 3)
Add Secret key (same as added in .env.local in step 3)
-
Then click on
example.com
and click on the right shift arrow, this will be changed during production. Save and exit. -
Change directory to
odyssey/frontend
and run,
npm i && npm run dev
- Go to
localhost:3000
in a browser.