- git clone https://github.com/costlife/express-es6.git
- cd express-es6
- npm install && npm start
- view http://localhost:3000/
- use es6 features which are supported by node 5.x
- use mongodb & mongoose as database
- add router and model control in this framework
- use Bootstrap3 and jQuery as a demo(you can use everything as you wish)
- node 5.x
- mongodb 3.x
- separate action and api
- if you add another api.js, it will help u to hava basic methods: add, find, find/:id, delete/:id, update/:id, clear, all these methods are auto created, the only thing you need to do is use them by POST
- action is now only used for render the page, the filename is used as the first router.
- add a small demo for use, try it.
- add Postman api samples