/coinkraal

Coin Kraal - keep those cryptos in check

Primary LanguageJavaScript

CoinKraal

keep those cryptos in check

https://coinkraal.io

Setup

npm install

Development

npm run dev

Testing

npm test

Deployment

npm run build
gcloud app deploy -v beta-04 --promote --stop-previous-version

gcloud config set project coinkraal

Links:

https://console.cloud.google.com/cloudshell/editor?project=coinkraal https://cloud.google.com/sdk/gcloud/reference/app/deploy https://cloud.google.com/appengine/docs/flexible/nodejs/configuring-your-app-with-app-yaml

Config Setup

Add config folder with 2 files

project
└───config
        default.json
        dev.json

Sample config

{
    "db": {
        "connection": "mongodb://user:password@address:port/db"
    },
    "auth": {
        "googleClientId": "xxxxxxxxxxxxxxx.apps.googleusercontent.com",
        "facebookClientId": "xxxxxxxxxxxxxxxxx",
        "jwtPrivateKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    }
}

TODO

  • Handle: getUser: () => requests.get(/api/user).catch(err => { authStore.signout() }),

  • Dont pass auth to ext apis

  • Dont show zero coins in coins page

  • Filter by coin on transactions page

  • My holdings on summary page

  • Accelerator Network stuck to top

  • sell today bug

  • Requery for coin summary chart is hours if low data

  • Notification on Portfolio chart to say 'TAU data only available from x date'

  • Volume on summary chart

  • component cleanup

    • imports that are unused
    • inject
    • @withrouter
    • @observer
  • have sell and buy dots on the chart

  • nodejs warnings npm WARN deprecated babel-preset-es2015@6.24.1: ߙ젠Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!

Windows

To kill node process C:\Windows\System32>taskkill /F /IM node.exe


Db Design

user

col name required type
_id yes uuid
firstName yes string
lastName yes string
email yes string
picture yes string
googleId yes string
dateCreated yes date
settings yes userSettings[]

userSetting

col name required type
name yes string
value yes string

transaction

col name required type
userId yes uuid
date yes date
notes no string
currency yes string
amount yes float
purchaseCurrency yes string
purchaseUnitPrice yes float
exchangeRates yes exchangeRate[]
sales no transactionSale[]

transactionSale

col name required type
date yes date
amount yes float
saleCurrency yes string
saleUnitPrice yes float
notes no string
exchangeRates yes exchangeRate[]

exchangeRate

col name required type
fromSymbol yes string
rates yes exchangeRatesRate[]

exchangeRatesRate

col name required type
symbol yes string
rate yes float

Ideas

  • Some king of coin Ranking??
    1. Bitcoin 2009
    2. Moon
    3. Lambo
    4. Good HODL
    5. B-Cash
    6. Heavy Bags
    7. Ian Shillina - All Star
    8. Total Sh*tcoin
    9. Biitconeeeeeeect! v2.0