https://github.com/steinathan/sails-hook-cloud
Automated sails actions
https://github.com/steinathan/sails-hook-cloud
Last synced: 4 months ago
JSON representation
Automated sails actions
- Host: GitHub
- URL: https://github.com/steinathan/sails-hook-cloud
- Owner: steinathan
- Created: 2019-05-27T11:02:41.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-27T07:31:58.000Z (almost 7 years ago)
- Last Synced: 2025-09-26T18:54:13.048Z (8 months ago)
- Language: HTML
- Homepage:
- Size: 146 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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..
```sh
$ pnpm i sails-hook-cloud
```
create `config/cloud.js` file
```js
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