A FastAPI-based vulnerability scanning platform for MERN stack applications.
-
Clone and Setup Environment
git clone <repository-url> cd xployt-main-backend cp .env.sample .env
-
Configure Environment Variables Edit
.envfile with your values:MONGODB_URL=mongodb://localhost:27017 MONGODB_NAME=xploitai SECRET_KEY=your-super-secret-key-here GITHUB_CLIENT_ID=your-github-client-id GITHUB_CLIENT_SECRET=your-github-client-secret -
GitHub OAuth Setup
- Go to GitHub Settings > Developer settings > OAuth Apps
- Create a new OAuth App with:
- Application name: Xploit.ai
- Homepage URL: http://localhost:8000
- Authorization callback URL: http://localhost:8000/api/v1/auth/github/callback
# Install dependencies
pip install -r requirements.txt
python run.pyOnce running, visit:
- Swagger UI: http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc
docker build -t xployt-main-server:latest /Users/lakshith/Developer/xployt-ai/xployt-main-serverdocker run --name xployt-api \
--env-file /Users/lakshith/Developer/xployt-ai/xployt-main-server/.env \
-p 8000:8000 \
-v /Users/lakshith/Developer/xployt-ai/xployt-main-server/local_storage:/app/local_storage \
xployt-main-server:latest