This project is a Developer Portal built using Django that enables users to manage API keys, view API documentation, and track API usage statistics. The portal provides features like user authentication, role-based access control, and a dashboard for monitoring API usage.
- User Registration and Authentication (Admin, Developer, Viewer roles)
- API Key Generation and Management
- Auto-Generated API Documentation using Swagger
- Interactive API Testing Tool
- Usage Analytics with Graphical Visualization
- Admin Panel for User and API Key Management
- Backend: Python, Django, Django REST Framework
- Frontend: HTML, CSS, JavaScript
- Database: SQLite (can be switched to PostgreSQL)
- Deployment: Docker, AWS (optional)
- Version Control: Git, GitHub
- Clone the repository:
git clone https://github.com/VedPatel2811/devportal.git cd devportal - Create and activate a virtual environment:
python -m venv env .\env\Scripts\activate # On Windows
- Install dependencies:
pip install -r requirements.txt
- Run database migrations:
python manage.py migrate
- Create a superuser:
python manage.py createsuperuser
- Run the server:
python manage.py runserver
- Access the application at:
http://127.0.0.1:8000/ - Admin panel:
http://127.0.0.1:8000/admin/ - API Documentation:
http://127.0.0.1:8000/api/docs/
- User Registration:
POST /api/users/ - API Key Generation:
POST /api/apikeys/ - View API Keys:
GET /api/apikeys/ - Interactive API Testing: via Swagger Docs
- Fork the project
- Create a feature branch:
git checkout -b feature/your-feature
- Commit your changes:
git commit -m 'Add new feature' - Push to the branch:
git push origin feature/your-feature
- Open a Pull Request
This project is licensed under the MIT License.