BeeHub is a catalog management system with user authentication and access control.
frontend/: React frontend applicationbackend/: Python FastAPI backend application
-
Navigate to the backend directory:
cd backend -
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use: venv\Scripts\activate -
Install dependencies:
pip install -r requirements.txt -
Copy the example environment file and configure it:
cp .env.example .envEdit the
.envfile to set your own configurations. -
Run the application:
python app.pyThe API will be available at http://localhost:5000
-
Navigate to the frontend directory:
cd frontend -
Install dependencies:
npm install -
Start the development server:
npm run devThe frontend will be available at http://localhost:5173
Once the backend is running, you can access the API documentation at:
- Swagger UI: http://localhost:5000/docs
- ReDoc: http://localhost:5000/redoc
The system uses JWT tokens for authentication. To access protected endpoints:
- Login using
/auth/loginto get a token - Include the token in the Authorization header as:
Authorization: Bearer your_token_here
A default admin user is created on first startup:
- Username: admin
- Password: admin123
Change these credentials in production by updating the .env file.