Skip to content

lucasousa/catApi

Repository files navigation

Icon FastAPI

🎯 CatAPI - Simple project using python FastAPI

📋 Sumary

📖 About

This project consists of a simple API developed using python FastAPI. The intention was to take the first steps with this new technology that I am studying and exploring its simplicity.

🛠 Technologies used

For the development of this simple project, the following technologies were used:

⚙ How to run the project

To reproduce this project follow the steps below:

  • Clone this repository:

    git clone https://github.com/lucasousa/catApi.git
  • Enter the catAPI folder:

    cd catAPI
  • Create the virtual environment:

     python3.8 -m venv env #I do it that way
  • Create your Postgres database and then create an .env file at the root of the project. In this .env file add your login credentials with the database. The required information is as follows:

     CONNECTION = postgresql
     HOST = 
     PORT = 
     USERNAME = 
     NAME = 
     PASSWORD = 
  • Install the requirements:

      pip install -r requirements.txt
  • Now just start the development server:

      uvicorn main:app --reload
  • To see your application running, access:

      http://127.0.0.1:8000/
  • To view the documentation generated by FastAPI and test the API endpoints, visit:

      http://127.0.0.1:8000/docs

    Docs FastAPI

  • Or visit:

      http://127.0.0.1:8000/redoc

    Docs FastAPI

⚖ License

This repository is under license from MIT.

About

Simple API using python FastAPI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages