Small boilerplate to get started with Fastify and GraphQL using mercurius.
### Install all modules
npm install
### Start local server on `http://localhost:8080/`
npm run dev
GraphQL Playground: http://localhost:8080/playground
GraphQL Endpoint: http://localhost:8080/graphql
Using the below command substituting XXX
in npm run XXX
.
Command | Effect |
---|---|
test |
Run all tests |
clean |
Delete dist folder |
build |
Trigger a clean build |
start |
Start the server using the output from npm run build ( -> dist/index.js ) |
dev |
Directly start the server via the TypeScript files, without transpiling, using ts-node-dev |
lint |
Run eslint on all TypeScript files under src |
lint:write |
Run eslint and fix all TypeScript files under src |