- An AI-Assistant that helps improve documents text and grammar.
- Python
- Node 18>
- ReactJs
-
Clone the repository:
git clone https://github.com/ru0ya/AI-Assistant.git cd AI-Assistant
-
Install dependencies:
pip3 install -r requirements.txt cd frontend/assistant npm install
-
Environment Variables:
- Create a
.env
file in the project root. - Add necessary environment variables:
SECRET_KEY=your_secret_key DATABASE_URL=your_database_url
- Create a
-
Run Migrations (if applicable):
python manage.py migrate
-
Start the Application:
- Backend:
python manage.py runserver
- Frontend:
npm start
- Backend:
POST /user-auth/login/
- Login to the application.POST /user/registration/
- Register a new user.
GET /user-auth/user/
- Retrieve user information.
GET /documents/
- List all documents.POST /documents/upload/
- Upload a document.GET /documents/{id}/
- Retrieve a single document.PUT /documents/{id}/
- Update a document.DELETE /documents/{id}/
- Delete a document.
Each endpoint includes:
- Parameters: List of parameters, both required and optional.
- Response: Example JSON response for success and error cases.
- Status Codes: Expected HTTP status codes for each endpoint.
- Swagger Docs
- Redocs
- SignUp: User signs up to the application.
- SignIn: User signs in with their credentials.
- Upload Document: User uploads document.
- Compare Document: User compares their old document with new and improved document.
- Go to
http://localhost:3000
to open the frontend application.
- Register: Enter required information and submit.
- Login: Use your credentials to access your account.
- Document Upload: Upload your document.
- Document Compare: Compare your documents.
- Django
- ReactJs
- spacy