Skip to content

sevbo2003/unibook.uz-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Resources

Database design: link

How To Use

  1. Clone the repository
  • git clone https://github.com/sevbo2003/unibook.uz-backend.git
  1. Install dependencies
  • pip install -r requirements.txt
  1. Environment setup
    • open .env.dev file and enter your credentials end rename file to .env
  2. Run server after this commands
    • python manage.py makemigrations
      python manage.py migrate
      python manage.py runserver

How to create an app

  1. Create a new app
    • python manage.py startapp <app_name>
  2. Move your app to the apps folder
  3. Rename app name inside apps.py file from name = '<app_name>' to name = 'apps.<app_name>'
  4. Add app name to INSTALLED_APPS list in settings.py with 'apps.<app_name>'
  5. Do what ever you want with your app

How to contribute

  1. Fork the repository
  2. Create a new branch
  3. Commit your changes
  4. Push your changes to the repository
  5. Open a pull request