Skip to content

contentful-developer-relations/nodejs-with-fastify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js app with Fastify

This is a companion repository to Contentful.com's "Introduction to Fastify: A practical guide to building Node.js web apps" tutorial.

Running the project

In the project directory, you can run:

npm run dev

To start the app in dev mode.

Open http://localhost:3000/get_time to view the route in the browser.

or you can run

npm run start

To start the app in production mode. This is needed for the /shopping_list route which uses a Prisma database. The dev script (see package.json) includes a "-w" watch flag which causes unexpected reloads and a 503 error so it's better to use production mode to avoid this.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published