Quick Start Guide
This guide will help you quickly get started with Hexalith, setting up your development environment and creating a simple application.
Prerequisites
Before you begin, ensure you have the following installed:
- .NET 8.0 SDK or later
- Docker Desktop
- Dapr CLI
Step 1: Install Hexalith
- Open a terminal or command prompt.
- Run the following command to install the Hexalith project template:
dotnet new --install Hexalith.Templates
Step 2: Create a New Hexalith Project
- Create a new directory for your project and navigate to it:
mkdir MyHexalithApp
cd MyHexalithApp
- Create a new Hexalith project using the template:
dotnet new hexalith
Step 3: Run the Application
- Build and run the application:
dotnet run
- Open a web browser and navigate to
https://localhost:5001to see your Hexalith application running.
Step 4: Explore the Project Structure
Take a moment to explore the generated project structure. You'll find:
src/directory containing the main application codetests/directory for unit and integration testsDockerfilefor containerization- Various configuration files for Dapr, Docker, and .NET
Step 5: Add a Simple Feature
Let's add a simple "Hello, World!" API endpoint:
- Open
src/MyHexalithApp.Api/Controllers/HelloController.cs(create it if it doesn't exist) and add the following code:
```csharp using Microsoft.AspNetCore.Mvc;
namespace MyHexalithApp.Api.Controllers { [ApiController] [Route("[controller]")] public class HelloController : ControllerBase { [HttpGet] public string Get() { return "Hello, Hexalith World!"; } } } ```
- Run the application again and navigate to
https://localhost:5001/helloto see your new endpoint in action.
Next Steps
Congratulations! You've created your first Hexalith application. Here are some next steps to continue your journey:
- Explore the Hexalith documentation to learn more about its features and capabilities.
- Check out the Installation Guide for a more detailed setup process.
- Learn about Hexalith's core concepts and architecture.
- Join the Hexalith community on GitHub to get support and contribute to the project.
Happy coding with Hexalith!