Coder Social home page Coder Social logo

dariusdv / rotki.com Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rotki/rotki.com

0.0 0.0 0.0 6.95 MB

The frontend for rotki.com

License: GNU Affero General Public License v3.0

Shell 0.05% JavaScript 0.43% TypeScript 19.51% CSS 0.03% Vue 79.15% Dockerfile 0.23% SCSS 0.61%

rotki.com's Introduction

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

rotki.com's People

Contributors

kelsos avatar tewshi avatar lefterisjp avatar lukicenturi avatar celkacelka avatar vincenttaglia avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.