Giter Club home page Giter Club logo

cloudtrax's Introduction

Build Status

Setup

Everything in the server is configured with environment variables from the hosted system. If this is Heroku, Environment Variables are saved in the app settings section of the online dashboard. If this app is running locally, all variables are pulled from the current environment. All variables are prefixed with CLOUDTRAX_SERVER_, but not included in the variable name below for brevity.

Environment Variables

Name Req Description
PORT YES The port for the server to run on. 1
DATABASEURI YES A complete and valid Postgres connection URI.
SECRET YES A salt used for communication with the APs.
DEBUG NO Default: FALSE, enables debug output. 2
MAXDBCONNECTIONS NO Defaults to Heroku default, 20

Environment Variable Notes:

  1. This defaults to PORT without the CLOUDTRAX_SERVER_ prefix when running on Heroku
  2. This can cause undue server load, as it enables debug mode with the underlying SQL library.

Deploying to Heroku

$ heroku plugins:install heroku-container-registry
$ heroku container:login
$ heroku create
$ heroku container:push web
$ heroku ps:scale web=1

External Documentation

Routes

Route Description
/:site/auth.html
(/joescoffee/auth.html)
Main authorization endpoint for the access point. This should be entered in the admin interface for each site, including a predetermined site name.
/:site/sessions/:session/:device
(/joescoffee/01234567/01:02:03:04:05:06/)
Return a single session from the server, by site name and session token
/:site/sessions/:session/:device/authorize
(/joescoffee/01234567/01:02:03:04:05:06/authorize)
Authorize a session, returns HTTP OK if accepted.

cloudtrax's People

Contributors

ryanhatfield avatar

Watchers

James Cloos avatar

Forkers

linkyone

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.