New Model API workflow JMJ Project, Node / January 7, 2023 January 7, 2023 1. create model2. make controller3. make api route4. add to server.js5. test in Postman
Adding a new page JMJ Project / February 13, 2022 February 20, 2022 viewsController.jsget request parameterssearch the database render the appropriate page with the dataviewRoutes.jsadd the route with appropriate params, and associate it with the controller from views controller_sideNav.pug add a link on the side name<new page>.pugcreate the new page (but try it out in sass first) index.js in PUBLICinitalize formset up event listeners<new page>.js ( in PUBLIC)event listeners for clicking, updating, etc in formbundle.jsrun this script (or watch if local), however, need the new bundle for uploadbundle.js.map (from build in JMJ)style.css (copies from JMJ card Sass project)
UNIX commands Unix cli / October 21, 2021 October 22, 2021 clearmkdir (can make multiple folders by putting space between names)rm (files)rm -rf (remove recursive force)touch – make a new filemv <file1> <file2> (renames a file)
Nano Editor on the Raspberry Pi Raspberry Pi\ / October 21, 2021 October 21, 2021 .nanorc – configuration file to set up tabs in the home directory set tabsize 4 set tabstospaces
Add new user – notes JMJ Project / September 26, 2021 September 26, 2021 firstname, lastname, email, cellphone all required, plus permissionsadd a new user, error – probably no family id, or teacher id for that matternew user not showing up ? no family info, see how selection to get add users is donegenerate random passwordsend email ‘login to site and choose the forgot password option’