https://github.com/shan18/code-warrior
An Online Judge Platform built using Django
https://github.com/shan18/code-warrior
competitive-programming django online-judge python
Last synced: 7 months ago
JSON representation
An Online Judge Platform built using Django
- Host: GitHub
- URL: https://github.com/shan18/code-warrior
- Owner: shan18
- License: mit
- Created: 2018-02-23T18:24:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-06-13T05:13:35.000Z (over 5 years ago)
- Last Synced: 2025-01-08T16:56:51.980Z (9 months ago)
- Topics: competitive-programming, django, online-judge, python
- Language: Python
- Homepage: https://nitmz.pythonanywhere.com/
- Size: 19.2 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Code Warrior
An online judge that supports the following languages:
- C
- C++
- Python 2
- Python 3### Tools Used
- **Python** - Django
- **Javascript**
- **Bootstrap**### Third Party Services Used
- **sendgrid**: Used to send transactional emails like email-id verification.
## Instructions for setting up the project
1. Clone the repository
`git clone https://github.com/morphosis-nitmz/Code-Warrior`2. Rename the file **.env-sample** to **.env** and replace the value of `SECRET_KEY` with the secret key of your own project. To generate a new secret key
- Go to terminal and create a new django project `django-admin startproject `.
- Now get the value of `SECRET_KEY` in *settings.py* and use that as the secret key for the **Stock-Bridge project**.
- Now delete that new django project.3. **Sendgrid setup**:
- Create an account on [sendgrid](https://sendgrid.com/).
- Add your sendgrid username and password to `EMAIL_HOST_USER` and `EMAIL_HOST_PASSWORD` in **credentials.py** respectively.
- Change the email and name in `DEFAULT_FROM_EMAIL` and `MANAGERS` in all *settings files* with your name and email.6. Run the following commands
`python manage.py makemigrations`
`python manage.py migrate`
`python manage.py collectstatic`7. Now load the **questions**, **test cases**, **expected outputs** and user submission into the database
`python manage.py loaddata questions/fixtures/questions.json`