Giter Site home page Giter Site logo

cleancoindev / general-admission Goto Github PK

View Code? Open in Web Editor NEW

This project forked from audiusproject/general-admission

0.0 0.0 0.0 1.56 MB

Audius frontend gateway for proxying traffic

License: Other

Dockerfile 0.42% Shell 0.40% TypeScript 92.94% HTML 6.13% JavaScript 0.12%

general-admission's Introduction

CircleCI

Audius frontend gateway for 3p traffic

There are two modes of operation of General Admission

  1. As a first-layer proxy

    • Client sends a request to GA
    • GA identifies User-Agent and redirects traffic accordingly
      • Humans are forwarded to the DApp
      • Bots / etxc. are forwarded to the internal Node server that handles OG tags or to the embed player
  2. (current) As a host/origin of secondary endpoints for the App (Embed Player, OG Meta Tags, etc.)

    • Client sends a request to a CDN with something like Lambda@Edge of CloudFlare Workers
    • CDN identifies User-Agent and optionally redirects traffic to GA
    • GA picks up on a subset of requests and forward to the internal Node server or the embed player

Getting started

git clone [email protected]:AudiusProject/general-admission.git
cd general-admission

cp .env.stage .env # or .env.prod

docker-compose up --build

visit http://localhost:9000.

and to stop it:

docker-compose down

or if you want to run just the node service:

# Will be running on port 8000
npm run start

# or with docker

docker build -t ga-node .
docker run --rm ga-node -p 8000:8000 -d

Against a local dapp

  1. Run the dapp locally
  2. Set APP_URL env var in .env to http://docker.for.mac.localhost:{DAPP_PORT}

general-admission's People

Contributors

csjiang avatar isaacsolo avatar jowlee avatar kyle-shanks avatar piazzatron avatar raymondjacobson avatar rickyrombo avatar sddioulde 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.