Skip to content

luisfponce/web_api_knowledge

Repository files navigation

web_api_knowledge

Summary

web_api_knowledge is a full-stack learning project for Web API concepts using FastAPI, MariaDB, and React/Vite. The app includes authentication plus prompt CRUD flows backed by a SQLModel data model.

Quick Start

The startup script deploys the frontend, backend, and MariaDB with Docker Compose, waits for service readiness, and verifies basic connectivity.

./scripts/run-compose-stack.sh

Primary URLs:

  • Frontend: http://127.0.0.1:8080
  • Backend direct: http://127.0.0.1:8000
  • API through frontend proxy: http://127.0.0.1:8080/api/v1/...

Stop the stack from the repository root:

docker compose down

Use docker-compose down if your environment only has the legacy Compose command.

Documentation

Repository Layout

  • frontend/: React, TypeScript, and Vite frontend served by nginx in Docker.
  • webapi/: FastAPI backend application, API routes, models, configuration, and database connections.
  • webapi/tests/: pytest suites for functional route tests and nonfunctional CI checks.
  • scripts/: local automation, including the full-stack Compose startup script.
  • docker-compose.yml: MariaDB, backend, and frontend service definitions for local full-stack runs.

About

This is a simple app is aimed to solidify and escalate web api knowledge

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors