Skip to content

MattOates/glot-www

 
 

Repository files navigation

glot-www

Overview

glot-www is the website hosted at glot.io. Snippets are stored and managed in glot-snippets and code are run through glot-run via their respective api's. PostgreSQL is used to store user profiles, api tokens, etc.

Environment variables

glot-www takes it's configuration from environment variables. All vars needs to be set, no default values are provided.

Variable name Allowed values Example Description
APPROOT <url> https://glot.io Base url to where the app is hosted
PORT 1-65535 3000 Listen port
PGHOST <ip> | <hostname> 10.0.0.12 Postgresql host
PGPORT 1-65535 5432 Postgresql port
PGUSER <string> glot Postgresql username
PGPASS <string> secret-password Postgresql password
PGDATABASE <string> glot Postgresql database name
RUN_API_BASE_URL <url> https://run.glot.io Url to run api
RUN_API_ADMIN_TOKEN <string> some-secret Admin token for the run api (to create users)
RUN_API_ANONYMOUS_TOKEN <string> secret-token Token used to run snippets for anonymous users
SNIPPETS_API_BASE_URL <url> https://snippets.glot.io Url to snippets api
SNIPPETS_API_ADMIN_TOKEN <string> some-secret Admin token for the snippets api (to create users)
MANDRILL_TOKEN <string> secret-mandrill-token Mandrill token (to send signup emails, etc)
ANALYTICS_ID <string> secret-id Google analytics id (optional)

Compile from source

git clone git@github.com:prasmussen/glot-www.git
cd glot-www
cabal sandbox init
cabal install -j --only-dependencies --max-backjumps=-1 --reorder-goals
cabal build

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 93.8%
  • CSS 4.9%
  • JavaScript 1.1%
  • Emacs Lisp 0.2%