[READ-ONLY] Mirror of https://github.com/probablykasper/cryp. Cryptocurrency portfolio tracker (unfinished)
0

Configure Feed

Select the types of activity you want to include in your feed.

JavaScript 16.4%
Sass 4.1%
CSS 1.8%
Pug 1.5%
Dockerfile 0.1%
Other 76.2%
23 1 0

Clone this repository

https://tangled.org/kasper.space/cryp https://tangled.org/did:plc:vmbtsvhxqeo2bsjqt5x36zp7
git@tangled.org:kasper.space/cryp git@tangled.org:did:plc:vmbtsvhxqeo2bsjqt5x36zp7

For self-hosted knots, clone URLs may differ based on your setup.



README.md

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.