This is the backend of the bookshelf project, which provides APIs and database management for a web app that allows users to browse and buy books online. We made this project as a way to learn more about e-commerce and to share our love for reading. 📚
🛠 This repo is still in the development stage. Some features may not work well or may change in the future.
- Bùi Lê Khánh Linh - Leader / Front-end / Design / Document
- Nguyễn Thị Thanh Lan - Back-end / Front-end / Document
- Nguyễn Duy Ngọc - Document / Back-end
- Create a virtual environment
py -m venv env
- Activate the virtual env
.\env\Scripts\activate
- Install dependencies
pip install -r requirements.txt
cd server
- Run migrations (optional)
If you wish to create a brand new database, feel free to dump the existed sql file and follow the step:
py manage.py migrate
- Create a superuser account
py manage.py createsuperuser
- Run the server
py manage.py runserver
Note: You may need to create and provide your infomation in a .env file.
Please create a new branch for your contribution. DO NOT upload code to the main
branch directly.
📌 Naming branch:
There are 2 types of branches:
-
Feature: This type of branch is for creating a new feature, and the functions should be well described in your Pull Request. Pattern:
feature/name
-
Fix: Use this type of branch to fix an issue or a set of issues. Pattern:
fix/name
The branch name will use kebab case: lowercase words and separated by a dash (-). E.g.: feature/example-new-feature
- Figma: Bookshelf UI