sails-hook-cloud

0.1.3 • Public • Published

sails-hook-cloud

Screenshot

Automate your actions in one place, routes are generated automatically just like how nuxt generates the routes but for server

Installing

I recommend pnpm, so..

$ pnpm i sails-hook-cloud

create config/cloud.js file

module.exports.cloud = {
  proxy: '/api/v1/anything-at-all'
};

this proxy would be used to add a route prefix to the main routes

This hook tends to generate automatic routes from your controllers/actions and binds them to sails without you manually creating them in the config/routes.js

Usage

while you can access the API endpoints directly, you can also use the cloud sdk client to automatically communicate with the server, the sdk is still in development but can be accessed here

visit http://locahost:1337/__cloud to view your actions in an explorer (you should have internet connection for the first time)

contributions and suggestions are higly welcomed

Package Sidebar

Install

npm i sails-hook-cloud

Weekly Downloads

4

Version

0.1.3

License

MIT

Unpacked Size

175 kB

Total Files

9

Last publish

Collaborators

  • navicstein