Giter VIP home page Giter VIP logo

thyme-capsule's Introduction

Thyme Capsule

This service provides user authentication and state syncing for the Thyme time tracking app.

Run this service on your own server or used the hosted version on https://usethyme.com.

Starting the service

$ npm start

Running linting and tests

$ npm test

Running your own instance

This repository has deployment setup for deploying on Heroku or Herokish systems like dokku.

Make sure you link a database container using MySQL or MariaDB and expose the connection URL as the DATABASE_URL environment variable.

Set the environment variables when running in production for security, especially the encryption key and JWT secret.

Read more about connecting the Thyme app to your instance in the Thyme docs.

Available environment variables

Create a .env file in the root of the project and it will be used to extend process.env.

ENV=production/development/test
PORT=5000
ENCRYPTION_KEY=secret-key-for-encryption
SALT_ROUNDS=10
DATABASE_URL=database://connection-url
JWT_SECRET=jwt-hash-secret
APP_PACKAGE_LOCATION=https://raw.githubusercontent.com/ThymeApp/thyme/master/package.json
STRIPE_KEY=stripe-secret-key
STRIPE_PLAN_EUR=stripe-plan-id
STRIPE_PLAN_USD=stripe-plan-id
STRIPE_WEBHOOK_SIGNATURE=stripe-webhook-signing-secret
MAILGUN_DOMAIN=mg.usethyme.com
MAILGUN_API_KEY=secret-key
SENTRY_DSN=sentry-dns

thyme-capsule's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

scoombe mortbauer

thyme-capsule's Issues

Decrypt: Invalid IV length

Sometimes the decryption of files will throw this error.

Might be due to overwriting file contents when it shouldn't.

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.