https://github.com/jaredhanson/todos-express-sqlite
Todo app built with Node.js, Express, and SQLite.
https://github.com/jaredhanson/todos-express-sqlite
example express nodejs sqlite todomvc
Last synced: 3 months ago
JSON representation
Todo app built with Node.js, Express, and SQLite.
- Host: GitHub
- URL: https://github.com/jaredhanson/todos-express-sqlite
- Owner: jaredhanson
- Created: 2022-01-09T15:44:52.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-13T23:34:19.000Z (over 3 years ago)
- Last Synced: 2025-05-13T01:56:08.247Z (8 months ago)
- Topics: example, express, nodejs, sqlite, todomvc
- Language: CSS
- Homepage:
- Size: 29.3 KB
- Stars: 10
- Watchers: 2
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Express • [TodoMVC](http://todomvc.com)
> Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.
– _[Express](https://expressjs.com/)_
## Resources
- [Website](https://expressjs.com/)
- [API Reference](https://expressjs.com/en/4x/api.html)
### Support
- [Stack Overflow](https://stackoverflow.com/questions/tagged/express)
- [Google Groups](https://groups.google.com/g/express-js)
*Let us [know](https://github.com/jaredhanson/todos-express-sqlite/issues) if you discover anything worth sharing.*
## Implementation
In contrast to a typical [TodoMVC](https://todomvc.com) 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 is built using [Node.js](https://nodejs.org/) along with the [Express](https://expressjs.com/)
web framework. Data is persisted to a [SQLite](https://www.sqlite.org/)
database. HTML pages are rendered using [EJS](https://ejs.co/) templates, and
are styled using vanilla CSS. HTML forms are used to modify data, rather than a
RESTful API. That being said, the forms serialize data in a format inspired by
[Todo-Backend](https://todobackend.com/).
To run this app, clone the repository and install dependencies:
```bash
$ git clone https://github.com/jaredhanson/todos-express-sqlite.git
$ cd todos-express-sqlite
$ npm install
```
Then start the server:
```
$ npm start
```
Navigate to [`http://localhost:3000`](http://localhost:3000).
The scaffolding for this app was generated using [Express application generator](https://expressjs.com/en/starter/generator.html):
```bash
$ express -v ejs todos-express-sqlite
```
## Credit
Created by [Jared Hanson](https://www.jaredhanson.me/)