Skip to content

FastAPI Backend for NLP Project on Tweets classification about national insecurity at Ecuador.

License

Notifications You must be signed in to change notification settings

jpcadena/tweets-classification-backend

Repository files navigation

tweets-classification-backend


Logo

tweets-classification-backend

Backend for Tweets Classification project.
Explore the docs »

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License
  6. Contact

About the project

Project

This project is the Python backend for the Tweets Classification Machine Learning project developed using FastAPI, PostgreSQL and Redis.

(back to top)

Built with

  • Python
  • FastAPI
  • Pydantic
  • Starlette
  • Uvicorn
  • Gunicorn
  • PostgreSQL
  • Redis
  • jwt
  • HTML5
  • Pandas
  • numpy
  • scikit-learn
  • Pytest
  • DigitalOcean
  • Nginx
  • Ruff
  • Black
  • MyPy
  • Pycharm
  • visual-studio-code
  • Markdown
  • Swagger

(back to top)

Getting started

Prerequisites

Installation

  1. Clone the repository
    git clone https://github.com/jpcadena/tweets-classification-backend.git
    
  2. Change the directory to root project
    cd tweets-classification-backend
    
  3. Create a virtual environment venv
    python -m venv venv
    
  4. Activate environment in Windows
    .\venv\Scripts\activate
    
  5. Install requirements with PIP
    pip install -r requirements.txt
    

(back to top)

Usage

  1. If found sample.env, rename it to .env.
  2. Replace your credentials into the .env file.
  3. Execute with console
    uvicorn main:app --reload
    
  4. Visit http://localhost:8000/docs for Swagger UI documentation.

(back to top)

Contributing

GitHub

If you have a suggestion that would make this better, please fork the repo and create a pull request.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Use docstrings with reStructuredText format by adding triple double quotes """ after function definition.
Add a brief function description, also for the parameters including the return value and its corresponding data type.
Please use linting to check your code quality following PEP 8.
Check documentation for Visual Studio Code or Jetbrains Pycharm.
Recommended plugin for autocompletion: Tabnine

(back to top)

License

Distributed under the MIT License.

(back to top)

Contact

  • LinkedIn

  • Outlook

(back to top)