Skip to content

j4p3/strimpack-server

Repository files navigation

Strimpack

Web server for strimpack service.

Express server rendering React app, authenticating requests, & processing payments.

npm commands:

  • start:
  • sync:
  • seed:
  • build:
  • serve:

config

environment variables

NODE_ENV
TWITCH_CLIENT_ID
TWITCH_CLIENT_SECRET
TWITCH_CALLBACK_URI

STRIPE_PUBLISHABLE_KEY
STRIPE_SECRET_KEY

STRIMPACK_SERVER_HOST
STRIMPACK_SERVER_PORT
STRIMPACK_SESSION_SECRET

STRIMPACK_DB_USER
STRIMPACK_DB_PASSWORD
STRIMPACK_DB_NAME
STRIMPACK_DB_HOST
STRIMPACK_DB_PORT

POSTGRESQL_ROOT_USER
POSTGRESQL_ROOT_PASSWORD

config.json

A convenient place to store config options to avoid hitting the DB for them every request. See config.default.json for full example.

{
  "title":
  "description":
  "channel": <Twitch.tv channel name>
  "navItems": [{
      "text": <what the nav link should say>
      "href": <where the nav link should go>
  }],
  "logo": <name of logo file e.g. logo.png>
  "themeColor": <hex or rgba value e.g. #fff>
  "subscriptionTiers": [{
      "level": <arbitrary number to differentiate tiers>
      "stripe_id": <corresponds to Stripe plan ID>
      "title":
      "cost": <corresponds to Stripe plan cost>
  }]
}

made with:

  • node
  • express
  • babel
  • passport
  • postgres/sequelize
  • react
  • stripe

About

server for stream community project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published