Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 654 Bytes

File metadata and controls

33 lines (22 loc) · 654 Bytes

egghead-build-a-modern-rest-api-in-node-js-with-fastify

Setup

npm install

npx knex migrate:latest

Create a .env file

PORT=3000
LOG_LEVEL=info
LOG_PRETTY_PRINT=true
DATABASE_ENVIRONMENT=development
DATABASE_URL=./recipes.db

See src/config.js for allowed configuration values.

Run in development

npm run start:dev

Test HTTP requests

There are a collection of test HTTP requests in test.http.

Note: To run the HTTP requests you must have the Visual Studio Code REST Client extension installed.