GithubHelp home page GithubHelp logo

fioprotocol / fio-dashboard Goto Github PK

View Code? Open in Web Editor NEW
6.0 10.0 3.0 32.97 MB

License: MIT License

Dockerfile 0.01% JavaScript 23.80% HTML 0.23% SCSS 7.26% TypeScript 66.72% Handlebars 1.99% Shell 0.01%

fio-dashboard's Introduction

Generated by generator-ezetech

Client

Documentation: Create-React-App.

https://github.com/facebook/create-react-app

Run tests:
npm test

In case you can't run tests: brew install watchman

Server

Run server in dev mode

Create .env file from .env.example template:

Run docker-compose:

docker-compose up

Then run

npm run server:dev

Notice: Before start app in dev mode you need to run npm install

Run tests for server

npm test:api

Code styles

  • Imports in files should have the right order:

    • 3-d party libs
    • components
    • components form the same folder
    • constants
    • methods/utils/hooks
    • types
    • css It will be changed after code style implementation from released MVP Generator 2.0
  • Default exports for pages and named exports is for other exports

  • If you see that something is not styled as it should be - change it.

Email templates

We change code for email templates here https://github.com/fioprotocol/fio-dashboard-tools Then we copy generated templates into dashboard app.

BitPay integration

If you want to use BitPay locally you need to have public access to your running application for webhook and payment BitPay site redirectUrl. How to easy handle this on your machine?

  1. Install nginx - https://www.nginx.com/ Useful links:
  • https://www.cyberciti.biz/faq/nginx-restart-ubuntu-linux-command/
  1. Install ngrok - https://ngrok.com/
  • You need to register there
  1. Configure nginx:
  • I have 5555 port, you could use any other port you want. Add this to you nginx.conf server part:
        # some default settings...
        
        listen       5555;
        server_name  localhost;

        location / {
            proxy_pass http://localhost:3000;
        }

        location /api/v1 {
            proxy_pass http://localhost:9006;
        }
    }
  1. Run nginx
  2. Run ngrok with command ngrok http 5555
  3. Ngrok will return a pubilc url address like https://564b-178-133-53-168.ngrok.io. Set it as API_BASE_URL and rerun server. Every time you run ngrok your public url address changes re-setup API_BASE_URL and rerun server. Enjoy!

fio-dashboard's People

Contributors

trukhilio avatar andreyveze avatar nikolasstelmah avatar ilkinguluzada avatar kirillpetkov avatar ilkinguluzada-cyb avatar sardonyxwt avatar orkhan-huseyn avatar vmkarpenko avatar ismaelterreno avatar nikolasstelmakh avatar ericbutz avatar kaaalim avatar misterleet avatar

Stargazers

 avatar MAYABLUEX avatar Crypto Wolf  avatar charlemagnes sania avatar Chris Oyi avatar Crypto Wolf ◾️ avatar

Watchers

Thomas Le avatar  avatar James Cloos avatar  avatar ITsyndicate avatar  avatar nicolasMazuryk avatar  avatar  avatar Crypto Wolf ◾️ avatar

Forkers

kenneth-ezops

fio-dashboard's Issues

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.