This is a simple web application that demonstrates basic Create, Read, Update, and Delete (CRUD) operations using a MySQL database.
Add Items: Users can add new items with a name and description. View Items: Users can view all items stored in the database. Edit Items: Users can edit the name and description of existing items. Delete Items: Users can delete items from the database.
- Clone the project
https://github.com/Hannan2004/Crud-Operations.git
- Install Dependencies
- Make a .env file, also make sure to add .env file in the root folder
- Template of .env file
DB_HOST = <YOUR-DATABASE-HOST>
DB_USER = <YOUR-USERNAME>
DB_PASSWORD = <YOUR-PASSWORD>
DB_NAME = <YOUR-DATABASE-NAME>
- Run as:
nodemon server.js