An simple example MySQL + Node.js CRUD app. Hopefully, this sample app can help people trying to learn Node.js with simple MySQL integration.
/edit page and
/ and run the following commands.
npm build npm install
Add the data from
latelist.sql.zip to your database for the three sample listings.
Make sure you update
app.js with your local MySQL settings. The settings in the repo for
MySQL are default settings for XAMPP/MAMP/WAMP, etc.
I like to use
forever to run my server with the following command.
forever start -w ./app.js
I usually refrain from installing anything with
-g but forever is so useful. You can install
forever globally with
npm using the following command.
npm install -g forever
Alternatively, if you just want to run the server alone, issue the following command.