TodoMVC
Fastify •Fastify is a web framework highly focused on providing the best developer experience with the least overhead and a powerful plugin architecture, inspired by Hapi and Express.
– Fastify
Resources
Support
Let us know if you discover anything worth sharing.
Implementation
In contrast to a typical TodoMVC app, this app does not utilize a frontend JavaScript framework or make use of client-side capabilities such as localStorage
. Instead, it illustrates how to build a todo app using a backend for application logic and persistence, along with HTML forms for interaction.
This app illustrates how to build a todo app using Node.js along with the Fastify web framework. Data is persisted to a SQLite database.
EJS templates are used to generate HTML, which is styled using vanilla CSS. HTML forms are used to modify data, rather than an HTTP API. That being said, the forms serialize data in a format inspired by Todo-Backend.
To run this app, clone the repository and install dependencies:
$ git clone https://github.com/jaredhanson/todos-fastify-sqlite.git
$ cd todos-fastify-sqlite
$ npm install
Then start the server:
$ node server.js
Navigate to http://localhost:3000
.
Credit
Created by Jared Hanson