For tonight's lab, we'd like you to build an app that uses node on the backend with redis for persistance.
- Create a folder and cd into it
touch app.js
npm init
touch .gitignore
echo "node_modules" >> .gitignore
- inside this folder, create another folder called views
git init
, add and commit.npm install --save
the required packages (express, ejs, body-parser, method-override, redis)- Think about what redis data structure you are going to use to store your students
- Begin by including the required dependencies in your
app.js
and add anindex.ejs
to your views folder. - Start working on your routes
Your application should list out students and at a minimum, offer the option to create and delete all students. Each student should have a name and nothing else.
Allow students to be updated and include functionality to delete a single student.
Make your application a SPA (single page application) that uses AJAX