khaledalam / cruid_api

CRUID Python FastAPI Alembic.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

For coding assignment purpose.

Simple CRUD APIs

No middlewares, security, logging, validations(except email) handled.

Requirements

  • Docker and docker-compose apt install docker.io docker-compose
  • Make sure 8888 and 3306 ports are not in use.

Run

  1. Env & run containers: ./setup.sh
  2. Migration: docker exec -it api alembic upgrade head

Ping to validate setup is done correctly:

curl -X 'GET'  'http://0.0.0.0:8888/' -H 'accept: application/json'

URLs

Demo

Containers

Docs

Structure

Postman APIs:

  1. Get all
  2. Get one
  3. Create new
  4. Update one
  5. Delete one

About

CRUID Python FastAPI Alembic.


Languages

Language:Python 85.2%Language:Shell 6.3%Language:Mako 4.8%Language:Dockerfile 3.8%