"# journal-sentiment-analyzer-backend"
- Go to the MongoDB Atlas website.
- Create a new account or sign in to your existing account.
- Create a new cluster.
- Once your cluster is set up, click on "CONNECT".
- Add your current IP address to the IP whitelist and create a MongoDB user.
- Choose "Connect your application".
- Copy the connection string and replace
<password>
with your MongoDB user's password.
Create a new file named .env
in the root directory of your project and add the following line:
MONGODB_URL=<Your MongoDB Connection String>
Replace <Your MongoDB Connection String>
with the connection string you got from MongoDB Atlas.
Run the following command in your terminal to clone the repository:
git clone <repository-url>
Replace <repository-url>
with the URL of the repository you want to clone.
Navigate to the project directory and run the following commands to create and activate a virtual environment:
python -m venv venv
venv/Scripts/activate
Run the following command to install the requirements from requirements.txt:
pip install -r requirements.txt
Run the following command to start the Uvicorn server:
uvicorn app.main:app --reload
Replace main with the name of your Python file and app with the name of your FastAPI application.
Open your web browser and go to http://127.0.0.1:8000/docs to view the Swagger UI documentation for your API.