Coder Social home page Coder Social logo

glot-www's Introduction

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 its configuration from environment variables. All vars need 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)
MAILGUN_DOMAIN <string> glot.io Mailgun domain
MAILGUN_API_KEY <string> key-1234567890 Mailgun api key
ANALYTICS_ID <string> secret-id Google analytics id (optional)
DISABLE_ADS true true Disable ads (optional)

Compile from source

git clone [email protected]:prasmussen/glot-www.git
cd glot-www
cabal sandbox init
cabal install -j --only-dependencies --max-backjumps=-1 --reorder-goals
cabal build

glot-www's People

Contributors

aranaur avatar jayharr-is avatar leandros avatar mattoates avatar nishtahir avatar ohaal avatar prasmussen avatar steinwaywhw avatar vinnymac 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.