BackSlash is a full-stack application that combines a chat interface with a Twitter-like social media platform. The project consists of multiple components that work together to provide a seamless user experience.
FrontEnd/
- Main frontend application (Solid.js/React)BackEnd/
- Main backend API service (FastAPI)
- Vercel Frontend: https://back-slash-front-ui.vercel.app
- Render Frontend: https://backslash-front-ui.onrender.com
- User requests a post on a topic.
- Backend gets the answer from Gemini and returns it to the frontend.
- Frontend displays the answer in an editable field.
- User can edit the answer.
- User clicks 'Post to Twitter' to submit the edited answer.
- Backend posts the edited answer to the Twitter clone.
- Every query and answer (original and edited) are saved in MongoDB.
GET /
- Health check endpointPOST /api/chat
- Get Gemini answer and save to MongoDBPOST /api/post_tweet
- Post edited answer to Twitter clone and update MongoDB
-
AI Chat Integration
- Interactive chat interface
- Powered by Gemini API
- User can edit AI-generated answers before posting
-
Twitter-like Functionality
- Post edited answers to Twitter clone
- View history of queries and answers
-
Persistence
- All queries and answers are saved in MongoDB
-
Cross-Platform Support
- Multiple frontend deployments
- Scalable backend services
- CORS enabled for secure cross-origin requests
- Frontend: Solid.js/React
- Backend: FastAPI (Python)
- Database: MongoDB Atlas
- Deployment: Vercel, Render
- AI Integration: Google Gemini API
To run the project locally:
- Clone the repository
- Set up environment variables
- Install dependencies for each component
- Run the services:
- Main Backend:
uvicorn main:app --host 0.0.0.0 --port 8000
- Frontend:
npm run dev
- Main Backend: