dwisulfahnur / blog-fastapi-vuejs

Simple project that I write using fastapi, motor, and umongo for the backend. VueJS on the frontend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blog API with FastAPI

Simple project that I write using fastapi, motor, and umongo for the backend. VueJS on the frontend.


Commands

Run

Run the app using the following command:

docker-compose up -d --build
# or
make up

Remove container

remove container

docker-compose down
# or
make down

# delete all previous containers and volume included
docker-compose down -v --remove-orphans 
# or
make down-all

Log Monitor

Monitor log for all services (mongodb, backend/api, frontend/vuejs)

docker-compose logs -f
# or
make logs

Monitor log for backend service only

docker-compose logs -f backend
# or
make logs-backend

Run Test for the backend service

docker-compose exec backend pytest
# or
make test-backend

The API Documentation url: http://127.0.0.1:8000/docs

The Blog: http://127.0.0.1:8080

About

Simple project that I write using fastapi, motor, and umongo for the backend. VueJS on the frontend


Languages

Language:Vue 47.6%Language:Python 45.7%Language:JavaScript 4.1%Language:HTML 1.2%Language:Dockerfile 0.9%Language:Makefile 0.5%Language:Shell 0.0%