# install dependencies
$ pnpm install
# serve with hot reload at localhost:3000
$ pnpm run dev
# build for production and launch server
$ pnpm run build
$ pnpm startMake sure the environment file exists
$ touch .envTo avoid api call loop, which freezes the app, do not set the variable to /
NUXT_PUBLIC_BASE_URL=http://localhost:3000And input the RECAPTCHA public key there.
NUXT_PUBLIC_RECAPTCHA_SITE_KEY=XXXXYou 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=0You can configure the frontend to proxy the /webapi to a server running somewhere:
For the production system you could use:
PROXY_DOMAIN=rotki.comor if staging is running you could set:
PROXY_DOMAIN=staging.rotki.comIf the server where you proxy doesn't run using https you can set so that the backend requests are proxied to http:
PROXY_INSECURE=trueRun with the development server with the following command:
$ pnpm run devTo fix any lint errors you have to run
pnpm lint:js --fixto run vitest
pnpm test
# run watch mode
pnpm test:watchFor 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