CRUD with Express
Lecture Topics
- Review on how the internet works
- What is CRUD
- Building our cohort's favorite movies web app
Important to remember:
- Every question is welcomed. Remember that your question might not be only yours. By asking your question, you help the group
- To interact, you can either type on the chat or open your mic and talk
- Do not compare your learning process with others. Rather, observe how today you know more than yesterday and create your own baseline
Notes:
Review on how the internet works + CRUD
You can check the slides about this subject here.
Creating our Favorite Movies Web App
- Create an Express Server -> you can find more information on how to install it here
- Add nodemon so your server will watch for your changes. Otherwise, each time you make a change on your server, you will need to re-start the server
- Add ejs to allow you to create html templates
- Don't forget to add the body-parser so you actually access your request's body
Remember:
<a>
tags only work for GET request<form>
tags can be used both for GET and POST requests- how to pass info from your server to ejs: template variables