Building REST API in the blink of an eye! (MySQL + NodeJS)
Avanthika Meenakshi

There is mistake in first listing with connecting to database. I think it should be:

app.use((req, res, next) => {
 res.locals.connection = mysql.createConnection({
 host: ‘localhost’,
 user: ‘root’,
 password: ‘superSecretPassword’,
 database: ‘test’


One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.