Skip to content

skylerkimcodes/rabbitreview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

32 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Internal Admin Tool

A lightweight FastAPI-based web application for managing internal resources and user administration.

Features

  • User authentication with JWT tokens
  • Admin panel for user management
  • File upload and management
  • OAuth integration for third-party authentication
  • RESTful API endpoints with automatic OpenAPI documentation

Setup

Prerequisites

  • Python 3.11 or higher
  • pip

Installation

  1. Clone the repository:
git clone <repository-url>
cd daytonadummy
  1. Install dependencies:
pip install -r requirements.txt
  1. Initialize the database:
python -c "from db.database import init_db; init_db()"
  1. Run the application:
python app.py

Or using uvicorn directly:

uvicorn app:app --host 0.0.0.0 --port 5000

The application will start on http://localhost:5000

API Documentation

FastAPI automatically generates interactive API documentation:

  • Swagger UI: http://localhost:5000/docs
  • ReDoc: http://localhost:5000/redoc

API Endpoints

Authentication

  • POST /api/login - Login with username and password

    {
      "username": "admin",
      "password": "admin123"
    }
  • POST /api/login/verify - Verify JWT token

Admin

  • GET /api/admin/users - List all users (requires admin access)
  • GET /api/admin/user/{id} - Get user details
  • POST /api/admin/user/create - Create new user
  • PUT /api/admin/user/{id}/update - Update user details
  • DELETE /api/admin/user/{id}/delete - Delete user
  • GET /api/admin/sessions/{user_id} - Get user sessions
  • GET /api/admin/stats - Get system statistics

Files

  • GET /api/files/list - List files in upload directory
  • GET /api/files/read?filename=<name> - Read file contents
  • POST /api/files/convert - Convert file format
  • POST /api/files/extract - Extract archive file
  • GET /api/files/download?filename=<name> - Download file
  • POST /api/files/restore - Restore file session from serialized data

Default Credentials

  • Username: admin
  • Password: admin123

Development

This is an internal tool for development and testing purposes. For production deployment, ensure:

  • Environment variables are configured for secrets
  • SSL/TLS is enabled
  • Rate limiting is implemented
  • Proper authentication mechanisms are in place

License

Internal use only.

About

Daytona Hackathon Winner ๐Ÿ† - Automated security testing pipeline that generates and executes vulnerability tests in isolated Daytona sandboxes via CodeRabbit.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages