The app allows you to play an OnlineTreasureHunt consisting of different levels.Players can login either using their Google
or Facebook accounts. Each level has a question and hints along with it like visual hints, audio hints, video hints .Each question would fetch you 10 points. Once the player answers the question the leaderboard is updated accordingly.
-
Create a virtual environment .
mkdir project
cd project
python3 -m venv venv
-
Clone the project in the project directory.
git clone https://github.com/nirvikagarwal/OnlineTreasureHunt.git
-
Activate the virtual environemnt.
source venv/bin/activate
.\Scripts\activate
-
Install the requirements.
cd OnlineTreasureHunt pip install -r requirements.txt
-
Go to the path venv/lib/django/contrib/auth/urls.py.
after all the import statements add
app_name='auth'
on the next line -
Set the environment variables
cp .env.example .env
Add the corresponding values in the .env file and save it
-
Run the Migrations
python manage.py makemigrations python manage.py migrate
-
Create Superuser
python manage.py createsuperuser
-
Run the development server
python manage.py runserver
-
Head over to http://localhost:8000/admin and login as super user
-
Add config and some levels to begin with.
-
Now you can login with your
Google
/ Facebook account and enjoy the game