Git Product home page Git Product logo

journal-sentiment-analyzer-backend's Introduction

"# journal-sentiment-analyzer-backend"

Setup Guide

Step 1: Create MongoDB and Get Connection String

  1. Go to the MongoDB Atlas website.
  2. Create a new account or sign in to your existing account.
  3. Create a new cluster.
  4. Once your cluster is set up, click on "CONNECT".
  5. Add your current IP address to the IP whitelist and create a MongoDB user.
  6. Choose "Connect your application".
  7. Copy the connection string and replace <password> with your MongoDB user's password.

Step 2: Set Up Environment Variables

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.

Step 3: Clone the Repository

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.

Step 4: Create and Activate a Virtual Environment

Navigate to the project directory and run the following commands to create and activate a virtual environment:

python -m venv venv
venv/Scripts/activate

Step 5: Install the Requirements

Run the following command to install the requirements from requirements.txt:

pip install -r requirements.txt

Step 6: Run the Server

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.

Step 7: Go to the Documentation

Open your web browser and go to http://127.0.0.1:8000/docs to view the Swagger UI documentation for your API.

journal-sentiment-analyzer-backend's People

Contributors

ejdadivas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.