This project is an example of using Express.js with validation middleware to handle user input. It demonstrates how to use the express-validator package to validate and sanitize form data in an Express.js application. The user can input infromation about users, update the information and search for users that are saved. This project was built as part of the Odin Project course on full-stack web development.
https://www.theodinproject.com/paths/full-stack-javascript/courses/nodejs
- Form Validation: Validate user input with various rules.
- Error Handling: Gracefully handle validation errors and display user-friendly messages.
- Express Integration: Seamlessly integrates with Express.js for server-side validation.
Before you begin, ensure you have the following installed:
-
Clone the repository:
git clone https://github.com/leylamemiguven/express-validator.git cd express-validator -
Install dependencies:
npm install- Running the Application
npm startOR
node --watch app.jsIf you want to make debugging easier.
Upon launching the app you will be greeted with a page where you can either create a new user or search the pile of existing users.

Users created will be shown on the home page after

If a user wants to update an already existing user's property, it will be shown on the home page.
A user can be searched by their first name or last name. The results will be shown in the Search Results page.
Feel free to enhance or customize this project as needed!




