a handlebars app using node, express, and mysql - with a handmade ORM
- How it works
- Instructions
- Built with
The app uses express and mysql to serve data to a handlebars html template. An http POST request and a PUT request (altered by the npm package method-override) are sent to the ORM, Model, and Controller files in the backend to create and 'eat' (respectively) a list of donuts.
Create a list of donuts you'd like to eat, then eat them, in a purely digital sense. No guilt!
If you'd like to setup a local copy, fork this repo and clone it to your computer; load that entire folder into VS Code (or your preferred editor), and from that directory, run
npm install
to install the packages and dependencies(in this case: mysql, handlebars, express, body-parser and method-override). Then use the schema.sql and seeds.sql files to create your mysql database, and edit the connection.js file with your local database credentials.
- Node - Asynchronous, single-threaded js runtime environment
- express - API framework
- mysql - node.js driver for mysql databases
- handlebars - html templating engine
- body-parser - body-parsing middleware for http
- method-override - create PUT or DELETE requests client-side