Skip to content

Latest commit

 

History

History
94 lines (65 loc) · 2.14 KB

File metadata and controls

94 lines (65 loc) · 2.14 KB

DevFoundry Quick Start Guide

Get DevFoundry up and running in minutes!

Prerequisites

1. Clone and Setup

# Clone the repository
git clone <repository-url>
cd DevFoundry

2. Start the Backend API

cd backend
dotnet restore
dotnet run --project src/DevFoundry.Api/DevFoundry.Api.csproj

The API will start at http://localhost:5000.

3. Start the Frontend (New Terminal)

cd frontend/devfoundry-ui
npm install
npm run dev

The UI will start at http://localhost:5173.

4. Open Your Browser

Navigate to http://localhost:5173 and start using DevFoundry!

Using the CLI

cd backend

# List all available tools
dotnet run --project src/DevFoundry.Cli/DevFoundry.Cli.csproj -- list

# Get help for a specific tool
dotnet run --project src/DevFoundry.Cli/DevFoundry.Cli.csproj -- describe json.formatter

# Format JSON
echo '{"name":"test"}' | dotnet run --project src/DevFoundry.Cli/DevFoundry.Cli.csproj -- run json.formatter

# Generate UUIDs
dotnet run --project src/DevFoundry.Cli/DevFoundry.Cli.csproj -- run generation.uuid --param count=5

# Calculate hash
echo "hello world" | dotnet run --project src/DevFoundry.Cli/DevFoundry.Cli.csproj -- run crypto.hash --param algorithm=sha256

Running Tests

# Backend tests
cd backend
dotnet test

# Frontend type checking
cd frontend/devfoundry-ui
npm run type-check

Next Steps

Troubleshooting

API won't start

  • Ensure .NET 8 SDK is installed: dotnet --version
  • Check if port 5000 is available

Frontend won't start

  • Ensure Node.js is installed: node --version
  • Clear node_modules: rm -rf node_modules && npm install
  • Check if port 5173 is available

CORS errors

  • Ensure the API is running on http://localhost:5000
  • Check VITE_API_BASE_URL in frontend .env file