A full stack application to store and present the jokes from https://github.com/15Dkatz/official_joke_api/blob/master/jokes/index.json
- Node v12.18.2+
- NPM 7.20.6+
- Install Node.Js dependencies:
npm install
- Import jokes into an SQLite DB from source repository
npm run import
npm start
- Access at: http://localhost:3000/
npm test
Based on a express-generator project template, replacing the default jade/pug template engine with the mustache to allow for HTML to be used but still have simple templating for the error page.
package.json
Project dependencies and scripts for use with npmapp.js
Entry point of the Express app.gitignore
Exclude files from GITREADME.md
This file./views
Contains the HTML (as mustache files) for the UI/routes
Contains express modules for resolving routes e.g/api/joke
and/
/public
Contains public assets such as javascript and css for the UI/modules
Contains modules written for the project e.g database handler/bin
Contains the entry point scripts./test
Contains testfiles to test the project.