Giter Site home page Giter Site logo

hydroplane's Introduction

hydroplane

Write and maintain code for automations in a webhook gateway built on Sails.

image image

The idea is you change the routes in that textarea and then hit save and then it's live.

(a Sails v1 application)

Getting started

  1. Fork this repo
  2. Deploy it, using whatever database you like
Things you won't need:
  • You will only need one compute instance, so you can get away without Redis this time if you want. (But setting up Redis will mean you won't get randomly logged out, which is nice. I would set up Redis.)
  • You probably won't need password reset or contact form emails, so you can skip Mailgun.
  • Unless you're trying to charge for this, you won't need payments either, so skip Stripe.

Deployment

You can deploy hydroplane however/wherever you want for your own uses.

For convenience, this repo also includes a built-in way on top of Heroku that's handy if you're working on the underlying source code.

  1. Set GitHub Secrets:
  • you can set these in "Settings > Secrets" in the GitHub UI, as of like Feb 2021. They'll probably change it at some point but, you've got this! They're lurking in the UI somewhere.
  • HEROKU_API_TOKEN_FOR_DEPLOYMENT (your heroku api token)
  • HEROKU_EMAIL_FOR_DEPLOYMENT (your heroku login email)
  1. Create a heroku app, set up a database, add redis and Papertrail too, if you can be bothered. Free tiers are fine. (If you're using a SQL database, use a wipe script to set up the tables- e.g. set database url in package.json and then sails run wipe
  • Example of working add-ons and config (you can also use a free tier dyno if you don't mind it going to sleep and then hanging. You probably want to pay them though, because a lot of automation systems you might be integrating with will time out.)
    • image
    • image
  1. Optional: npm install your database adapter and configure it in config/env/production.js. (This is set up to use sails-mysql in production already by default, so if you're cool with that, you don't need to install anything.)
  2. Configure the app to know its own URL in the production config (baseUrl and sockets.onlyAllowOrigins). Note that other settings necessary for Heroku (secure cookies and trust proxy config) are already enabled.
  3. Customize the github action in this repo to make it point at your heroku app (FUTURE: change the action so it uses a github secret for the app name too, so that this step can be simplified)
  4. Customize the github action in this repo to point at your repo (it has a failsafe at the top to prevent deploying on every 3rd party PR)
  5. Push something to master and it will deploy.
  6. Once it's working, login with [email protected]/abc123 and then change your password.

Links

Version info

This app was originally generated on Sat Feb 13 2021 15:02:27 GMT-0600 (Central Standard Time) using Sails v1.4.0.

This project's boilerplate is based on an expanded seed app provided by the Sails core team to make it easier for you to build on top of ready-made features like authentication, enrollment, email verification, and billing. For more information, drop us a line.

hydroplane's People

Contributors

eashaw avatar mikermcneil avatar theadamgalloway avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.