Example webapp with Fastify
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
public
src
templates
test
.dockerignore
.editorconfig
.gitignore
.npmignore
CHANGELOG.md
Dockerfile
LICENSE
README.md
package.json

README.md

fastify-example

Example webapp with Fastify

Setup and run

To complete project setup, do:

npm install

and run with

npm start

then point your browser to localhost:8000

Setup and run with Docker

Note that it's possible to let Docker do all inside a container, because all is described in a Dockerfile; see Dockerfile-usage for related commands. Of course you need a local installation of Docker (recent, if possible latest), but nothing other.

Others

To run a development server (with hot reload enabled) instead execute this:

npm run start:dev

For other custom commands look the 'scripts' section inside 'package.json'.

Requirements

Fastify 1.4.0 or later, Node.js 8.11.1 or later.

License

Licensed under Apache-2.0.