Giter VIP home page Giter VIP logo

example-application's Introduction

Example Application

This is an example application to deploy with Kubernetes. In case it isn't obvious from the name, nothing here is intended for real-world production use.

Docker Images

This example is expected to be deployed with Docker. Both the client and the server include a Dockerfile.

Configuration

The server accepts the following environment variables for configuration:

  • PORT - The port to listen on (default: 3000)
  • FRONTEND_URL - The URL the client is available on; used for redirecting after a Stripe Checkout session (no default, example: https://app.example.com)
  • MARIADB_HOST - The hostname or IP address of the MariaDB server
  • MARIADB_PORT - The port the MariaDB server is listening on
  • MARIADB_USERNAME - The MariaDB username
  • MARIADB_PASSWORD - The MariaDB password
  • MARIADB_DATABASE - The MariaDB database name
  • STRIPE_API_KEY - A Stripe API key (WARNING: This application isn't intended for production use. Only run it with a Stripe test key)

The client accepts one environment variable:

  • GRAPHQL_URL - The URL of the GraphQL endpoint to use (example: http://api.example.com/graphql)

Migrations

The server will not run any outstanding database migrations automatically - to run them, execute yarn migrate in a running server container (or a fresh container with the same environment variables set).

example-application's People

Contributors

drofawesomeness avatar snyk-bot avatar

Watchers

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