Quick Start
Get up and running with SUDIGITAL in just a few minutes!
Prerequisites
Before you begin, ensure you have the following installed:
- Bun (latest version) - Download here
- Node.js 18+ - Download here
- Git - Download here
Step 1: Clone the Repository
bash
git clone https://github.com/sudigital/platform.git
cd platformStep 2: Install Dependencies
Using Bun for fast installation:
bash
bun installStep 3: Environment Configuration
Copy the environment template and configure your settings:
bash
cp .env.example .envEdit the .env file with your configuration:
properties
# Database Configuration
DB_HOST=sudigitalpostgresqldev.postgres.database.azure.com
DB_PORT=5432
DB_USERNAME=your-username
DB_PASSWORD=your-password
DB_NAME=postgres
# API Configuration
API_PORT=3001
API_CORS_ORIGINS=http://localhost:3000
# Web Configuration
WEB_PORT=3000
# Documentation
DOCS_PORT=5173Step 4: Start Development
Start all services in development mode:
bash
bun run devThis command will start:
- API Server - http://localhost:3001
- Web Application - http://localhost:3000
- Documentation - http://localhost:5173
Step 5: Verify Installation
Check API Health
bash
curl http://localhost:3001/api/healthExpected response:
json
{
"status": "healthy",
"timestamp": "2025-08-17T10:30:00.000Z",
"version": "0.1.0"
}Access Interactive Documentation
Visit http://localhost:3001/docs to explore the API documentation powered by Scalar.
Check Web Application
Visit http://localhost:3000 to see the frontend application.
Step 6: Explore the Platform
API Documentation
- Interactive Docs: http://localhost:3001/docs
- OpenAPI Spec: http://localhost:3001/openapi.json
- LLM Documentation: http://localhost:3001/llms.txt
Available Endpoints
GET /- API informationGET /api/health- Health checkGET /api/users- User managementPOST /api/users- Create new user
Development Commands
Individual Package Development
bash
# Start only API server
bun run --filter='@sudigital/api' dev
# Start only web application
bun run --filter='@sudigital/web' dev
# Start only documentation
bun run --filter='@sudigital/docs' devBuilding for Production
bash
# Build all packages
bun run build
# Build specific package
bun run --filter='@sudigital/api' buildTesting
bash
# Run all tests
bun test
# Run tests in watch mode
bun test:watch
# Type checking
bun typecheckTroubleshooting
Port Already in Use
bash
# Kill processes on ports
lsof -ti:3001 | xargs kill -9 # API
lsof -ti:3000 | xargs kill -9 # Web
lsof -ti:5173 | xargs kill -9 # DocsDatabase Connection Issues
- Verify your
.envconfiguration - Check Azure PostgreSQL firewall settings
- Ensure SSL connection is properly configured
Module Resolution Errors
bash
# Clean and reinstall dependencies
rm -rf node_modules packages/*/node_modules
bun installNext Steps
Now that you have the platform running:
- Explore the API - Check out the API documentation
- Learn the Architecture - Read the guide
- Design System - Explore design tokens
- Scalar Integration - Learn about API documentation
Need Help?
- Check the Installation Guide for detailed setup
- Review API documentation for endpoint details
- Visit Troubleshooting for common issues
- Open an issue on GitHub for support
Happy coding! 🚀