-
Run the following git clone:
git clone https://github.com/Rohit599/Plexus2.0 Plexus
-
cd into the directory into which you cloned the git repository:
cd Plexus
-
Run virtualenv on the git cloned directory to setup the Python virtual environment:
virtualenv env
-
Activate the virtual environment:
source bin/activate
(
env\scripts\activate
for Windows based users) -
After activating the virtual environment, install the dependencies:
pip install -r requirements.txt
-
Generate initial data by running the command:
python manage.py startdata
-
Now, create the database migrations so as to use the Database:
python manage.py makemigrations
python manage.py migrate
-
Create a supersuperuser:
python manage.py createsuperuser
-
You are all set. Run the final command:
python manage.py runserver
-
Its time to rock. Visit http://localhost:8000 in your browser and you should be all set.
admin/
: Opens admin panelregistration/player-register/
: Register a playerregistration/society-register/
: Register a societyregistration/login/
: Login for player/societytoken/
: Returns an access and refresh JSON web token pairtoken/refresh/
: Returns an access type JSON web token if the refresh token is validdashboard/society-dashboard/
: Lists all the events under the societydashboard/events/
: Viewset for the event model : Creates eventdashboard/events/{pk}/questions
: Viewset for the questions model : Creates question for a specific event pkdashboard/events/{pk}/questions/{pk}
: PUT/PATCH/DELETE for question of specific pkdashboard/events/{pk}/rules/
: Viewset for the rules model : Creates rules for a specific event pkdashboard/events/{pk}/rules/{pk}
: PUT/PATCH/DELETE for rules of specific pkdashboard/past-events/
: Get all past eventsdashboard/present-events/
: Get all present eventsdashboard/future-events/
: Get all future eventsdashboard/player-dashboard/
: Gets a list for all the eventsdashboard/player-dashboard/{pk}
: Gets all the details for a specific event pkdashboard/player-dashboard/{pk}/play
: Gets the question of a specific event pkdashboard/leaderboard/<int:pk>
: Leaderboard of a specific event/swagger/
: API Documentation using Swagger/redoc/
: API Documentation using Redoc