Web server for strimpack service.
Express server rendering React app, authenticating requests, & processing payments.
- start:
- sync:
- seed:
- build:
- serve:
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
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>
}]
}
- node
- express
- babel
- passport
- postgres/sequelize
- react
- stripe