The project is generated by LoopBack. The project is integrated with ECMAScript 6 (ES6) and ESLint
-
Install NodeJS >=6. Recommend: Use nvm to manage node version: https://github.com/creationix/nvm
-
Install Loopback CLI: (sudo) npm install -g loopback-cli
-
Install nodemon: (sudo) npm install -g nodemon
-
Install babel-cli globally: (sudo) npm install -g babel-cli
-
Install package modules: npm install
- Run server (run eslint automatically): npm start
- If no errors are found by ESLint, the api server will start at http://localhost:3000
- Check api swagger (opening on development mode): http://localhost:3000/explorer
- See this: http://loopback.io/doc/en/lb3/Command-line-tools.html
- Example: Create new model: lb model modelName