Getting Started
Quick start guide for Doxa development
Getting Started with Doxa
This guide will help you set up your development environment and create your first Doxa application.
Prerequisites
- Node.js 16 or higher
- Git
- Basic understanding of blockchain concepts
Installation
- Install the Internet Computer SDK:
sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)"
- Clone the Doxa repository:
git clone https://github.com/DoxaFoundation/doxa-v3
cd doxa-v3
- Install dependencies:
npm install
Local Development
- Start the local network:
dfx start --background
- Deploy the canisters:
dfx deploy
- Start the development server:
npm run dev
Your First Transaction
Here’s a simple example of creating a new USDC swap pool:
public shared(msg) func create_pool(
token0 : Principal,
token1 : Principal
) : async Result.Result<Text, Text> {
let pool = await SwapCanister.create({
token0 = token0;
token1 = token1;
fee = Constants.CYCLE_FEE;
});
Debug.print("Pool created: " # debug_show(pool));
};
Additional Learning Resources
Internet Computer Development
- Official Internet Computer Documentation - Comprehensive guides for building on IC
- IC Developer Portal - SDK guides, tutorials, and sample projects
- Chain Fusion Documentation - Learn about cross-chain integrations
Motoko Programming
- The Motoko Programming Language Book - Complete guide to Motoko
- Motoko Base Library - Standard library documentation
- Motoko by Example - Practical code examples
Canister Development
- Canister Development Cycle - Understanding canister lifecycle
- Canister Best Practices - Security and optimization tips
- Deployment Guide - Production deployment instructions
Next Steps
- Learn about Core Concepts
- Explore the API Reference
- Check out our Guides