2025-08-20 21:25:45 -04:00
2025-08-20 21:01:11 -04:00
2025-08-20 21:25:45 -04:00

Online Booking Application

Cliff Hill's Coding Project

AI Use

I used AI to stub out a couple of files:

  • The backend/Dockerfile and frontend/Dockerfile - to speed up the process of getting docker loaded efficiently for the project.
  • The compose.yml file - getting the different images gathered together quickly.
  • The compose.dev.yml file - used to get a further understanding of how to hook up an extension to the previous file.
  • The mermaid diagrams used in this file.

Running for production

The standard docker compose file is used to set up the project in the production environment, and can be run from the following command:

docker compose up

Local running

There is an alternative compose file specifically designed for running this project locally which allows for real-time editing and updating of either the frontend or backend components. The command ro tun everything locally is:

docker compose -f compose.dev.yml up

This compose file extends the standard compose file, adding in the necessary pieces to make the application usable in a local dev environment. In this configuration, the frontend is accessable from port 3000 like normal, the backend is accessable from port 8000, and postgres DB from 5432.

Diagrams

Docker Compose Components:

graph TD
    A[Frontend] -->|HTTP/REST| B[Backend]
    B -->|SQL| C[Postgres]
    A -->|Docker Network| B
    B -->|Docker Network| C
Description
The code I used for a coding challenge.
Readme 50 MiB
Languages
Python 54.2%
TypeScript 39%
CSS 5.3%
JavaScript 1%
HTML 0.4%
Other 0.1%