Skip to content

fsiddiqi/mysqlRest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mysqlRest

Starter template for a NodeJS Express REST API to perform CRUD operations with a MySQL or similar relational database

Inspired by and extended from this article

Instructions

  1. Fork and Clone this repo
  2. Edit connection details in dbconnection.js
  3. See sample DB entity models in /models starting with Task.js. Add a model for each entity you need
  4. See REST API URI and implementation samples in /routes. Add a route for each API you need
  5. See require statements at top of app.js and your new routes
  6. See app.use statements in middle of app.js and add your new routes
$ npm install
$ npm start

Test in Postman with URI http://localhost:3000/Tasks

Sample UI

Based on the excellent ng-admin project

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published