a Sails v1 application
CRUD created with framework Sailsjs http server, including a router.
Connection to Mongodb
npm i
npm run dev
The command was included in the package.json
Migration was configured by default in alter to prevent sails from asking every time the development server is reloaded.
migrate: 'alter'
...
"scripts": {
"start": "NODE_ENV=production node app.js",
"dev": "nodemon --watch ./api/ --watch ./config/ app.js",
"test": "npm run lint && npm run custom-tests && echo 'Done.'",
"lint": "./node_modules/eslint/bin/eslint.js . --max-warnings=0 --report-unused-disable-directives && echo '✔ Your .js files look good.'",
"custom-tests": "echo \"(No other custom tests yet.)\" && echo"
},
...
Create presale.
URL: /api/v1/create
Update presale.
Param path: id unique presale.
URL: /api/v1/update/:id
Delete presale.
Param path: id unique presale.
URL: /api/v1/delete/:id'
Get all items of presales.
URL: /api/v1/presales
Gets a single item by its id.
Param path: id unique presale.
URL: /api/v1/presale/:id
- Sails framework documentation
- Version notes / upgrading
- Deployment tips
- Community support options
- Professional / enterprise options
This app was originally generated on Mon Aug 31 2020 18:47:23 GMT-0500 (Central Daylight Time) using Sails v1.2.5.