A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/fastify/demo below:

fastify/demo: A concrete example of a Fastify application using what are considered best practices by the Fastify community

The aim of this repository is to provide a concrete example of a Fastify application using what are considered best practices by the Fastify community.

Prerequisites: You need to have Node.js version 22 or higher installed.

This demo is a simple task management API. It allows users to create, retrieve, update, and delete tasks. Additional features include file uploads, CSV downloads, task assignment, and role-based access control.

Install the dependencies:

You can run a MySQL instance with Docker:

To run it in the background:

To create the database, run:

To create and update the database schema, run the migrations:

To populate the database with initial data, run:

To drop the database, run:

To build the project:

In dev mode:

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

In production mode:

The application exposes interactive API documentation using Swagger UI.

Once the server is running, visit: http://localhost:3000/api/docs

To run the tests:

dev and start leverage fastify-cli, but you can run the demo as a standalone executable (see server.ts):

To check for linting errors:

To check and automatically fix linting errors:

To learn more about Fastify, check out the Fastify documentation.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4