Skip to content

Repository files navigation

This codebase comes in support of the following article: Clean Architecture in Practice with TypeScript, Prisma, Next.js.

Run app

Install dependencies, generate Prisma client and apply database schema to a local SQLite file:

npm install
npx prisma migrate deploy

Start Next.js server:

npm run dev

Try command MakeReservation:

curl --location 'http://localhost:3000/api/reservations' \
--header 'Content-Type: application/json' \
--data '{
    "startDate": "2024-08-14T14:00:00Z",
    "endDate": "2024-08-14T15:00:00Z"
}'

About

A minimal example of Clean Architecture with TypeScript, Prisma, Next.js.

Resources

Stars

7 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages