Coder Social home page Coder Social logo

crypto-balance-tracker's Introduction

This is a Next.js project bootstrapped with create-next-app.

Getting Started

Env variables

ETH_NODE_URL

  • The RPC endpoint of the EVM compatible blockchain node
  • Example: http://localhost:8545

EXPLORER_API_BASE_URL

  • The API URL of an etherscan like blockchain explorer
  • Example: https://api.etherscan.io

EXPLORER_API_KEY

  • Your API key for the etherscan explorer

You can create a .env file and paste the contets from .env.example.

Setup

  • Yarn is the preferred package manager of this repository

Update yarn:

corepack enable
yarn set version stable

Install dependencies:

yarn install

Run the development server:

yarn dev

Open http://localhost:3000 with your browser to see the result.

Production build

yarn build

Deploy

  • You can start to serve the build by starting a local server:
yarn run start
  • Or you can export the static files:
yarn run next export

Docker

Build an image

docker build -t imageName .

Run a container

  • To set the env variables, define them during runtime.

Example:

docker run -dp 3000:80 -e "ETH_NODE_URL=http://mynoderpc.app/rpc" -e "EXPLORER_API_KEY=mySecretAPIkey

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

crypto-balance-tracker's People

Contributors

anymus0 avatar

Watchers

James Cloos avatar  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.