Skip to content

JoaoTareco/checkout_page

Repository files navigation

Running the project

This project uses node 18.

There are 3 steps to run the project, after clonning it:

1. Add the .env file

This project uses a database for persistence. The database is hosted and the connection string needs to be added for connection.

2. Install all packages

To install dependencies, run

npm install

3. Run the app

To start the app, run:

npm run dev

Open http://localhost:3000 with your browser access it.

Details

Main packages used

For this project, here are the main dependencies used:

  • react-hook-form for ease of implementing the forms and allowing for form to be separated into specific components.
  • Zod for form validation.
  • Tailwind.
  • Shadcnui (component library) for the basic components used.
  • Prisma as ORM to access a Postgres database

Database schema

For persistence of created bookings, I used a simple database schema to log:

  • Customer info
  • Booking info
  • Booking status

Here is an overview of the schema: image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published