A simple way to build express restful api and mysql server.
- Run
npm install
first to initiate node modules - Running server:
node server
- Browse url on port 3000
localhost:3000/controller/method?params=<params>
example :
http://localhost:3000/users/get_all_users?start=0&limit=10
user :: 123456
Configure your connection to MySQL server instance . SQL file: example_api.sql . Database Name: example_api