This is a bare-bones example of a express application providing a REST API to a prisma model.
The entire application is contained within the src
folder.
config.ts
is a minimal Rack configuration.
tests.ts
runs a simplistic test and generates the API.
npm install
npm run dev
npm run tests
The REST API to the example app is described below.
GET /
curl -i -H 'Accept: application/json' http://localhost:PORT/api/v1/login
Response will be a detailed description for the application login system