Skip to content

rotki/rotki.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rotki.com

Build Setup

# install dependencies
$ pnpm install

# serve with hot reload at localhost:3000
$ pnpm run dev

# build for production and launch server
$ pnpm run build
$ pnpm start

Setting up the environment

Make sure the environment file exists

$ touch .env

To avoid api call loop, which freezes the app, do not set the variable to /

NUXT_PUBLIC_BASE_URL=http://localhost:3000

And input the RECAPTCHA public key there.

NUXT_PUBLIC_RECAPTCHA_SITE_KEY=XXXX

You can get a testing key from developers google.

if you are running behind https make sure to also add:

NUXT_PUBLIC_BASE_URL=https://localhost
NODE_TLS_REJECT_UNAUTHORIZED=0

Backend proxy

You can configure the frontend to proxy the /webapi to a server running somewhere:

For the production system you could use:

PROXY_DOMAIN=rotki.com

or if staging is running you could set:

PROXY_DOMAIN=staging.rotki.com

If the server where you proxy doesn't run using https you can set so that the backend requests are proxied to http:

PROXY_INSECURE=true

Run

Run with the development server with the following command:

$ pnpm run dev

Lint

To fix any lint errors you have to run

pnpm lint:js --fix

Tests

to run vitest

pnpm test

# run watch mode
pnpm test:watch

Changes to activation, subscription and payment links

For to the following urls, any change requires backend sync to avoid broken email links.

/password/reset/[uid]/[token] /activate/[uid]/[token]/ /checkout/pay/method?p=[number_of_months]&id=[subscription_id] /home