Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

AI-Powered REST API Service

A full stack application providing AI capabilities with a Django backend and React frontend.

Features

  • User registration and JWT authentication
  • Automated API key generation for users
  • Daily rate limiting (10 requests/day per user)
  • Usage tracking dashboard
  • AI Endpoints powered by Google Gemini API (Summarize, Explain, Review Code)
  • Clean, dark-mode preferred UI built with React and TailwindCSS v4

Prerequisites

  • Node.js (v18+ recommended)
  • Python (v3.10+ recommended)
  • Google Gemini API Key

Setup Instructions

1. Backend Setup (Django)

cd backend
python -m venv venv
# On Windows:
.\venv\Scripts\activate
# On Mac/Linux:
source venv/bin/activate

# Install dependencies
pip install django djangorestframework djangorestframework-simplejwt django-cors-headers google-generativeai python-dotenv

# Run migrations
python manage.py makemigrations
python manage.py migrate

# Create a superuser for the admin panel
python manage.py createsuperuser

# Start the development server
python manage.py runserver

2. Frontend Setup (React)

cd frontend

# Install dependencies
npm install

# Start the Vite development server
npm run dev

3. Environment Variables

Create a .env file in the backend directory with your Gemini API key. See .env.example for the required format. If you don't provide a key, a dummy key will be used and the API will return errors.

Usage

  • Open http://localhost:5173 to access the React Frontend.
  • Open http://localhost:8000/admin/ to access the Django Admin Panel.

About

A full stack application providing AI capabilities with a Django backend and React frontend.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages