Express server integrated with mySQL server, fetches data from mySQL database and sends them to client interface using both statically and dynamically. Insert data into mySQL database directly from the client interface & display results.
you need to have MySQL server running and a database connection to connect to. database should have an existing table "persons" with columns Id, Name, Age & city.
- clone this project to your local directory
- open your local directory in vscode or another editors
- Install all dependencies using command line in the same directory:
npm init
npm install mysql2 express hbs