Giter Site home page Giter Site logo

h4unt3d-h4u5's Introduction

Starter revisit.link Service

Ryan made a glitch sample app for revisit.link. I cloned it and edited it a little to make it more bare bones/general use. You can use it to build your own revisit.link service on top of it, if you want.

HALP WANTED

Suggestions or problems? Submit an issue here, or find me on the webs--I'm rhodesjason on freenode and @rhodesjason on Twitter.

Even better: submit pull requests to improve documentation, add a better example, add examples to the lists below, etc etc.

DO IT DO IT DO IT

How does it work?

Setup

  1. Clone this repo
  2. Run npm install from the new directory
  3. Make a new GitHub repo for your code, copy the SSH link
  4. Use git remote set-url origin <new repo url> to point your code to your own repo

Transform

  1. In transformer.js, write code to do your transformation to the image buffer. (See below for examples of how others are doing these transformations.)
  2. Make sure your exported function returns the modified image buffer (or change the code in index.js to not expect a buffer)
  3. Add dependencies as needed with npm install --save <libname>
  4. Test your code locally by running npm start from the repo directory and opening http://localhost:8000 in your browser

Note: if you change the name of this lib, make the corresponding changes in index.js

Deploy

  1. Find hosting for your app (see below for some example options)
  2. Point a domain or subdomain A record at your new hosting IP
  3. Deploy code to the hosting provider
  4. Run the index.js file as a service using something like forever or nodemon
  5. Copy the URL/port where your app is running
  6. Oh yeah, make sure it's actually running still...

Style the test page (if you want?)

  1. You can style the root test page however you want
  2. html is in index.html
  3. CSS/JS are in public

Add to revisit.link

  1. Go to https://github.com/revisitors/revisit.link.hub
  2. Switch to the master branch if you're not already there
  3. Navigate to config/services.json, click the "edit" icon
  4. Add your service details
  5. Commit your changes (right in the browser because future) and submit the pull request

Transformation libraries and options

Hosting options

There are tons of other ones but these seem like two solid options:

For DO you don't even really need to use the nginx part, you can just use the yourdomain.com:8000 URL for something like this as many are doing.

h4unt3d-h4u5's People

Contributors

kid-icarus avatar jasonrhodes avatar gringogidget avatar jaredhirsch avatar

Watchers

James Cloos 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.