- Python 3.x
- MongoDB
- Google OAuth2 credentials
- IDE (VS Code recommended)
Follow these steps to set up the project:
-
Fork and Clone the Repository
- Fork the repository to your GitHub profile.
- Clone the forked repository to your local machine.
git clone https://github.com/your-username/Beehive.git
-
Open the Project in Your IDE
- Open the project in your favorite IDE, such as Visual Studio Code or PyCharm.
-
Create a Virtual Environment
- Navigate to the project directory and create a virtual environment.
python -m venv venv
-
Activate the Virtual Environment
- Activate the virtual environment.
.\venv\Scripts\activate
source venv/bin/activate
-
Install Required Libraries
- Install all the libraries listed in
requirements.txt
.
pip install -r requirements.txt
- Install all the libraries listed in
-
Configure Environment Variables
- Rename
.env.example
to.env
. - Rename
client_secret_example.json
toclient_secret.json
.
- Rename
-
Create Google OAuth API Key
- Create a Google OAuth API key.
- Download the
client_secret.json
file and place it in the project directory.
-
Update
.env
File- Open the
.env
file and add the required credentials.
MONGODB_CONNECTION_STRING=mongodb://... GOOGLE_CLIENT_ID=your-client-id GOOGLE_CLIENT_SECRET=your-client-secret REDIRECT_URI=http://localhost:5000/admin/login/callback [email protected],[email protected]
- Open the
-
Run the Application
- Execute the
app.py
file to run the application.
python app.py
- Execute the
By following these steps, you will have the project set up and ready to use.