29 posts tagged with "Express"
View All TagsFlash messages notify the user about various things as they interact with the application. For example if a login failed, why it failed.
Creating nested REST routes to edit and delete comments. Restricting access to routes based on user role.
Checking if user is authorized to edit content by comparing user ID to author ID. Creating middleware function, and dynamic GUI controls based on ID.
Refactoring Express routes into separate modules for organizational purposes, using the Express Router middleware
Implementing user authentication in an Express application using Passport JS. Setting up login and registration forms, authentication routes, and template modification based on authentication.
Seeding is when we wipe the database and then add a set of filler data, which makes it easy to test when we are making changes. Itโs sort of like Lorem Ipsum, for the database.
Anytime a user can input text data we have to sanitize the input so that they don't inject anything malicious, like a script to drop the database. This is how we sanitize inputs in Express.
RESTful routes is a conventional pattern to follow when structuring different routes for interacting with the server whenever an HTTP request is made by the client.