Skip to content
This repository was archived by the owner on Jul 2, 2021. It is now read-only.

probablykasper/cryp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cryp

Cryptocurrency portfolio tracker (unfinished)

Get Started

  • Install Docker Compose if you do not already have it.

  • Set your environment variables in environment.env. This assumes your server only uses one domain.

    • CRYP_ENV: dev or production.
    • CERT_DOMAIN: Set this to your domain name.
    • CERT_EMAIL: The email your TLS certficiate will be registered with.
  • Create the file web/node/keys.js, and fill in your Google API Client ID and Client Secret in it. To get those:

    1. Go to the APIs section of GCP and create a project, then select it.
    2. Click "Create credentials" and "OAuth client ID".
    3. The Application type should be Web application. Now add your Authorized redirect URIs. Add http://localhost/auth/google/callback for local development and add another one for production, replacing localhost with your own domain name and http with https.
    4. Press "Create", and you'll be presented with your client ID and secret.

    Your keys.js file should have this format:

    module.exports = {
        google: {
            clientID: "",
            clientSecret: ""
        }
    }

Usage

  • Register TLS certificate: docker-compose up letsencrypt-init.
  • Renew TLS certificate: docker-compose up letsencrypt-renew.
  • Start server: docker-compose up web mongo-express. Exclude mongo-express in production.

About

Cryptocurrency portfolio tracker (unfinished)

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published