Giter VIP home page Giter VIP logo

beresheet-faucet-backend's Introduction

Edgeware Testnet Faucet - Beresheet - Backend

This project serves as backend for beresheet faucet you can find the frontend here, which can be used to obtain test EDG for development purposes, like deploying contracts.

Define the following environment variables or simply save them in a .env file inside the main folder:

TOKENS_TO_PAY_PER_REQUEST = 10
REQUEST_LIMIT= 3
LIMIT_UNIT = DAY # MIN | HOUR | DAY - Defaults to DAY
FAUCET_ACCOUNT_MNEMONIC = '' # Mnemonic for account with Test EDG - will be used as dispenser
URL_TEST_NET= 'ws://127.0.0.1:9944' # For edgeware local node see: https://github.com/hicommonwealth/edgeware-node/
TOKEN_DECIMALS = 18 
NETWORK_PREFIX = 42
NODE_ENV = 'production'

Pre-requisites

  • An account on Edgeware with Test EDG - or local node running (for local edgeware blockcahin)

Currently, the app can be used on https://beresheet-faucet.vercel.app/, but the domain is likely to change and shall be updated here.

Getting Started

Clone this repo git clone https://github.com/edgeware-builders/beresheet-faucet-backend.git

Installing

To successfully run the backend:

Install dependencies using yarn

yarn

Run the app in the development mode

yarn start:dev

Open http://localhost:9000 to view it in the browser.

To build the app for production:

yarn build

Builds the app for production to the ./dist folder. It correctly bundles the app in production mode and optimizes the build for the best performance. The build is minified and the filenames include the hashes. The app is now ready to be deployed!

Built With

  • TypeScript - Typed JavaScript at Any Scale.
  • ExpressJS - Fast, unopinionated, minimalist web framework for Node.js
  • NeDB - A Lightweight JavaScript Database

Contributing

Please submit pull requests to us using the format described while making a pull request.

Authors

See also the list of contributors who participated in this project.

Acknowledgments

beresheet-faucet-backend's People

Contributors

nblogist avatar rajranjan0608 avatar raj-rr1 avatar kushwahasameerkumar avatar sayankar avatar shankarwarang 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.