A Django REST API backend with React frontend for managing board game rentals.
- Create a branch off of
devbranch named in the format<name>/type-title-of-this-branch
git branch <your-name>/type-title-of-this-branch.
git <your-name>/type-title-of-this-branch.notes:
- remove all "<>" from the commands
- valid types include:
- feat: feature
- fix: bug fix
- refact: refactor
- docs: documentation
- chore: a chore
- Once development is concluded, open a pull request from your branch back to the
devbranch.
dev: where contributions are madeqa: contains a functional version of code to be testedprod: production ready code to be released
- Python 3.10 or higher
- Node.js 20.19 or higher
- PostgreSQL
git clone https://github.com/WesternDeveloperSociety/western-board-games.git
cd western-board-gamesFor Linux and MacOS:
python -m venv wbg-env
wbg-env\Scripts\activateFor Windows:
py -m venv wbg-env
wbg-env\Scripts\activatepip install -r requirements.txtIMPORTANT: ALL API KEYS SHOULD PUT IN THIS FILE AND NOT IN THE CODEBASE ITSELF.
Create a .env file in the project root with your local database credentials:
LOCAL_DB_NAME=your_local_database_name
LOCAL_DB_USER=your_local_database_user
LOCAL_DB_PASSWORD=your_local_database_password
LOCAL_DB_HOST=localhost
LOCAL_DB_PORT=5432python manage.py makemigrations
python manage.py migratepython manage.py runservercd westernBoardGames\wbg_react_frontendnpm installnpm run dev- Backend: Django server runs on
http://localhost:8000/ - Frontend: React app runs on
http://localhost:5173/ - Admin Panel: Access Django admin at
http://localhost:8000/admin/
westernBoardGames/- Django project rootbg_admin/- Board game administration appgames/- Games management apprentals/- Rental management appuser/- User management appfrontend/- Frontend integration appwbg_react_frontend/- React frontend application
# Activate virtual environment
wbg-env\Scripts\activate
# Start backend
python manage.py runserver
# In new terminal - start frontend
cd westernBoardGames\wbg_react_frontend
npm run devdeactivateTBD
give yourself some credit
Team Leads:
- Radmehr
- Shayaan
Developers:
- Alex
- Candice
- Daniel
- Emily
- Violet