Giter Club home page Giter Club logo

network_test_util's Introduction

Setup

Install Rust:

Unix: https://www.rust-lang.org/tools/install Windows: https://forge.rust-lang.org/infra/other-installation-methods.html#other-ways-to-install-rustup

Note that this project uses Unix shell scripts. Windows 10+ seems to support it. If something doesn't work, you might need to try a VM (with Linux or MacOS) or Cygwin.

Clone sandbox

git clone [email protected]:algorand/sandbox.git

Add sandbox to path

Ensure that the sandbox script in the sandbox repo's root is in path (instructions depend on OS).

Start sandbox

sandbox up dev -v

up starts the sandbox, dev uses dev mode, which allows to execute transactions nearly instantly (instead of the ~4 seconds it takes on a regular network), and -v is for verbose output.

Clone this project

git clone [email protected]:ivanschuetz/network_test_util.git

Install local dependency

This project depends on another private Rust project. For now we link it as local source.

Navigate to the parent of this project
Clone dependency:
git clone [email protected]:ivanschuetz/mbase.git

You should have now

parent
├─ mbase
├─ network_test_util

Create project's environment file:

From this repo's root:

Copy ./sample.env and rename it in .env.

Run project:

From this repo's root:

cargo run

This will setup the test environment: it resets the sandbox network (this removes all data) and configures (funding, asset opt-ins, etc) the test accounts. Note that everything is local, so you can call this when and as often as you need.

The frontend uses the sandbox network, with the same connection data as this project (assuming that the WASM dependency was built with this configuration, which should normally be the case), so it should immediately reflect the changes (after refreshing).

network_test_util's People

Contributors

ivnsch avatar

Watchers

 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.