IMPORTANT: You need ALL of these to use this guide. This guide has only been tested to work on macOS!
- Docker
- Git
- docker-compose (no install needed if you have Docker Desktop installed from above on macOS and Windows)
Open a terminal of some sort:
- macOS - Terminal
- Windows 10 - Console
- Windows 11 - Windows Terminal
- Linux - if you are using Linux, you should know how to use a terminal... lol
This command:
- Downloads this code
- Enters the folder
- Starts the quickstart sequence
git clone https://github.com/syvita/stacks-api-node
cd stacks-api-node
sh start
NOTE: You might have to use sudo sh start
instead of sh start
if you encounter permission issues with Docker on Linux.
The quickstart sequence:
- Downloads the Stacks node code
- Downloads the Stacks API code
- Builds the Stacks node to run on your system (can take upwards of 10min)
- Builds the Stacks API to run on your system (usually around 5min)
- Boots up the database, node, API and explorer
It can take anywhere from a few hours to weeks to sync up to the blockchain based on how fast your internet connection is. The API might take a while to be available.
More details are shown in your console after the bootup sequence.