Compete IT is a project aimed to help students to find the most relevant competitions in IT and teammates for a team contests!
This repo contains only API of the project
Technologies: Django, Django REST Framework, Django Channels
Databases: PostgreSQL(Production), SQLite(Development), Redis
Deployment: Heroku, Cloudinary
- Python installed version 3.8.5
virtualenv
installed globally via pip
- Clone git repo using command
git clone https://github.com/Rotarasov/Compete-IT.git
- Go to folder
cd compete_it
and create virtual environmentvirtaulenv venv
- Install requirements from txt file
pip install -r requirements.txt
- Add database url and variable for local development to .env file
echo -e "DATABASE_URL=sqlite:///db.sqlite3\nLOCAL=1" > .env
- Create database
touch db.sqlite
- Create folders for media
mkdir -p media/{user_pics,event_pics}
and upload to media/user_pics picture for default user image and the name should bedefault.png
- Run
python manage.py migrate
in the command line to set up database - Run
python manage.py runserver
to run server