Coder Social home page Coder Social logo

sati17 / stacks-blockchain-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hirosystems/stacks-blockchain-api

0.0 0.0 0.0 8.7 MB

API for the Stacks 2.0 blockchain

Home Page: https://blockstack.github.io/stacks-blockchain-api/

License: GNU General Public License v3.0

Shell 0.55% JavaScript 0.69% TypeScript 97.97% HTML 0.01% Dockerfile 0.78%

stacks-blockchain-api's Introduction

@blockstack/stacks-blockchain-api

Build Status

Gitpod ready-to-code

Quick start

A self-contained Docker image is provided which starts a Stacks 2.0 blockchain and API instance.

Ensure Docker is installed, then run the command:

docker run -p 3999:3999 blockstack/stacks-blockchain-api-standalone

Similarity, a "mocknet" instance can be started. This runs a local node, isolated from the testnet/mainnet:

docker run -p 3999:3999 blockstack/stacks-blockchain-api-standalone mocknet

Once the blockchain has synced with network, the API will be available at: http://localhost:3999

Development quick start

First, ensure Docker is installed on your machine.

Clone repo and install dependencies with npm install.

Run npm run dev:integrated.

This command will concurrently start the API server app and the service dependencies.

Check to see if the server started successfully by visiting http://localhost:3999/extended/v1/status

Local Development

Setup Services

Then run npm run devenv:deploy which uses docker-compose to deploy the service dependencies (e.g. PostgreSQL, Blockstack core node, etc).

Running the server

To run the server in 'watch' mode (restart for every code change), run npm run dev:watch. You'll have a server on port 3999.

stacks-blockchain-api's People

Contributors

agraebe avatar asimm241 avatar aulneau avatar charliec3 avatar dependabot[bot] avatar fariedt avatar fdmirza avatar friedger avatar hstove avatar kyranjamie avatar lgalabru avatar noumanahmad001 avatar noumanahmads avatar psq avatar raynaudoe avatar reedrosenbluth avatar rllola avatar semantic-release-bot avatar timstackblock avatar wileyj avatar zone117x 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.