- Install dependencies
yarn
- Set environment variables
cp .env.example .env
set the required DATABASE_URL
to apply the migrations (and generate the prisma client)
npx prisma migrate dev
now you can run the server
yarn start
The server is hosted on my private dokku (basically an open source heroku) server.
It's available at https://limehome.hassah.me
And the frontend is hosted on netlify at https://amazing-snyder-7b63d7.netlify.app
-
GET /api/reservations
query params: {take?: integer >= 0, skip?: integer >= 0} -
POST /api/reservations
body (content-type: application/json):- firstName: string (required)
- lastName: string (required)
- checkInDate: string (required)
- checkOutDate: string (required)
- numOfGuests: integer (required)
- billingAddress: string (required)
- billingCountry: string (required)
- postalCode: string (required)
- city: string (required)
- phone: string (required)
- email: string (required)