Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

سرویس بک‌اند پلتفرم کاموا

Notifications You must be signed in to change notification settings

Kamva-Academy/Kamva-Backend

Repository files navigation

Instalation

  • git clone git@github.com: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

APIs

To see apis check http://127.0.0.1:8000/api after running the project locally

Deployment

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

Contribution

  1. Select an issue from here that you want to work on.
  2. 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
  3. After fixing selected issue, create a pull request (PR) to master and waits until reviewr review your code.
  4. If reviewer noticed you for a mistake in PR, be responsible to fix that.
  5. At the end, reviewer merges your PR and your contribution complete!