git clone [email protected]:Kamva-Academy/Kamva-Backend.git
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
python3 manage.py migrate
python3 manage.py createsuperuser
python3 manage.py runserver
To see apis check http://127.0.0.1:8000/api after running the project locally
After being logged in to server and Kamva-Backend folder, run:
git pull
docker-compose up -d --build
docker-compose restart nginx
In case you need to get shell, do:
- go inside the docker:
docker exec -it {name} sh
python manage.py shell
- Select an issue from here that you want to work on.
- Create a new branch from
master
and fix selected issue on new branch.- creating new branch from
master
:git checkout -b <new-branch-name> master
- creating new branch from
- After fixing selected issue, create a pull request (PR) to
master
and waits until reviewr review your code. - If reviewer noticed you for a mistake in PR, be responsible to fix that.
- At the end, reviewer merges your PR and your contribution complete!