Giter VIP home page Giter VIP logo

frontend-react's Introduction

React + Next

Bithomp Frontend

Available Scripts

In the project directory, you can run:

yarn dev

NEXT_PUBLIC_NETWORK_NAME=mainnet yarn dev

mainnet | staging | testnet | devnet | xahau-testnet | xahau

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

yarn build

Builds the app for production.

yarn start

Runs the app in production

Run the app localy

cd <folder for projects> // create a folder and open terminal/console there.

npm install -g yarn // install yarn if you do not have it yet

git clone --single-branch https://github.com/Bithomp/frontend-react.git // copy the repository

cd frontend-react // open the folder with the repo in the terminal/console

mv .env .env.local // rename .env into .env.local

nano .env.local // open the file .env.local and remove # for the env you have api key for and before the last line with the key, enter your NEXT_PUBLIC_BITHOMP_API_TEST_KEY

yarn // install packgaes

yarn dev // run project in dev mode, you will see on the localhost:3000

Deployment (first time)

cd <folder for projects>

npm install -g yarn

git clone --single-branch https://github.com/Bithomp/frontend-react.git

cd frontend-react

mv .env .env.local

nano .env.local //remove # for the correct env, enter your NEXT_PUBLIC_BITHOMP_API_KEY and save the changes

yarn

yarn build

pm2 start yarn --name "frontend-react" -- start // otherwise: -- start:next

pm2 logs frontend-react --lines 1000 //verify it runs properly

pm2 save

Update

cd <folder for projects>/frontend-react

git pull

yarn // if packages were updated

yarn build

pm2 restart frontend-react

Clean up if run on small VPS

yarn cache clean

Language tanslation credits

Spanish - @Ekiserrepe

Indonesian - @suuf24

Japanese - @develoQ

German - @rsteimen

frontend-react's People

Contributors

ihomp avatar vierin avatar ekiserrepe avatar zgrguric avatar suuf24 avatar josepmariavila avatar wojake avatar rsteimen avatar tequdev avatar enigmaridworld avatar anna15170221 avatar ildaruz avatar pavel-fokin avatar tankataina avatar

Stargazers

 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.