Local Development Setup
Set up a local development environment for IDA with all services running natively.
Prerequisites
Repository Structure
1. Clone and Install Dependencies
The make install command runs:
2. Start Infrastructure Services
Start PostgreSQL, Redis, and NATS locally:
3. Start ADI Local Devnet
Run a 2-node ADI blockchain for local development:
This starts two ADI nodes on ports 30303 and 30304 with pre-funded accounts for testing.
4. Deploy Smart Contracts
Deploy the four core smart contracts to the local devnet:
Output:
Record these addresses in your .env file.
5. Configure Environment
Create a .env file in the project root:
6. Run Database Migrations
7. Start the API Server
The API will be available at http://localhost:8080.
8. Start the Web Portal
The portal will be available at http://localhost:5173.
9. Run Tests
10. Useful Make Commands
IDE Setup
VS Code Extensions
- Go (golang.go)
- rust-analyzer
- ESLint
- Tailwind CSS IntelliSense
- Solidity (JuanBlanco.solidity)
- Prettier