Last updated by: samin, Last updated on: 28/09/2024
Smartbike backend readme
Prerequisites
- Git
- Python 3
- Virtual Environment (venv)
- Visual Studio Code or any preferred IDE
- Django and other Python libraries
Installation Steps
1. Fork the Repository
First, fork the repository to your own GitHub account:
- Visit the repository at Redback SmartBike Mobile GitHub.
- Click on the Fork button at the top right corner of the page. This will create a copy of the repository in your GitHub account.
2. Clone the Forked Repository
After forking, clone the repository to your local machine by opening a terminal and running the following commands:
git clone https://github.com/<Your_GitHub_Username>/redback-smartbike-mobile.git
cd redback-smartbike-mobile
Replace <Your_GitHub_Username>
with your actual GitHub username.
This will download the repository files to your local system and change your directory to the repository's root.
3. Open the Project in Visual Studio Code
You can open the project directory in VS Code by typing:
code .
Alternatively, use the source control option in VS Code to clone and open the repository directly.
4. Set Up Python Virtual Environment
Navigate to the backend_server directory:
cd backend_server
Create and activate the virtual environment:
For Windows
python -m venv .venv
.venv\Scripts\activate
For MacOS/Linux
python3 -m venv .venv
source .venv/bin/activate