Skip to content

lugnitdgp/OnlineTestSuite

Repository files navigation

OnlineTestSuite for Junior Code Cracker

logo

Activate a virtual environment in python using:

python3 -m venv venv
source venv/bin/activate

For debian based distro, in virtual evironment terminal type

pip install -r requirements.txt

To run the project on local machine

Create a PostgresSQL database.
Then cp .env.example .env and change .env file according to your need.

Inside project directory type

python manage.py migrate
python manage.py collectstatic
python manage.py runserver

To host the project on a server

Make a new env file using cp .env.example .env and fill the necessary details and make sure the POSTGRES_HOST is set to db.

Have docker and docker-compose installed on your machine.

Run docker-compose -f docker-compose.prod.yaml up --build -d.

See docker ps for giving the container ids and connect using sudo docker exec -it <CONTAINER-ID> /bin/bash

Create a superuser and you're good to go.

About

Online Test Suite for conducting quizzes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published