This is a demo app to play around with the idea of a three-tiered application architecture.
frontend/: a React app that fetches data from the backendbackend/: a Hono server (Hono is a Node.js library for writing HTTP servers) that interacts with a SQLite database
Running this project requires Docker to be installed. The easiest way to install Docker is through Docker Desktop.
docker compose upIf you make changes to a source file and they're not being applied automatically, try running:
docker compose up --build- Add an API endpoint to create a new contact
- Add the endpoint in
backend/src/index.ts - It should call the
createfunction inbackend/src/db.ts - Remember what the HTTP request method, structured data format, and response status codes should be!
- Add the endpoint in
- Make the UI look nice