Giter Site home page Giter Site logo

node-subs-template's Introduction

how to use

deploy to netlify

Deploy to Netlify

netlify setting

  • get your access_token at Personal access tokens
  • set env variable ACCESS_TOKEN and DOMAIN at build-environment-variables(note:domain is your netlify site link)
  • set your webhook at build-hooks, then copy the link.(note: when a submit is trigger, a rebuild will happen)
  • set you form notify choose outgoing-notifications then paste your webhook url

add subscribe source

although netlify was only for static sites ,but with forms and webhook it can be dynamic. there is a litter trick:when a form is submit,netify will visit a outgoing url,we set then outgoing url with is's buid hook! wow!

  • visit `{your netlify link }/sub
  • submit the subscribe form
  • wait a few minute (rebuild..)

deploy on your own server

pre build

  • update dependence use composer composer install
  • set up your env variable ACCESS_TOKEN and DOMAIN at .env files
  • start php buildin server php -S 127.0.0.1

add node and subscribe

  • add node : visit {your domain link }/add?node={your ssr link}
  • add subscribe : visit {your domain link }/sub?link={your sub link}

node-subs-template's People

Contributors

yangyao 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.