[go: nahoru, domu]

Skip to content

This application handles product listing. Users can perform CRUD operations on products.

License

Notifications You must be signed in to change notification settings

ultrastudent/product_listing_API

 
 

Repository files navigation

product_listing_API

This application handles product listing. Users can perform CRUD operations on products.

  • Clone the project to your local repository.
  • To run the project follow the steps below.

Environment variables

Create a .env in the project root directory. The .env should have the following sample variables and values.

POSTGRES_HOST=products_db
POSTGRES_USER=username
POSTGRES_PASSWORD=password
POSTGRES_DATABASE=database
POSTGRES_PORT=5432
ASYNC_DATABASE_URI=postgresql+asyncpg://username:password@products_db:5432/database
PROJECT_NAME=Product Listings

You can change the values as you see fit.

Building the project

Assuming you have docker installed, run the command below:

docker-compose -f docker-compose.yml up -d

The command will build the images and start the docker images instances (containers).

To access the API, open your browser and paste the following URL:

http://localhost:8000/docs

To understand how to create the database and perform migrations head over to the following blog post: DevOps with Fast API & PostgreSQL: How to containerize Fast API Application with Docker

About

This application handles product listing. Users can perform CRUD operations on products.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 92.8%
  • Dockerfile 4.9%
  • Mako 2.3%