Installing Hexalith
This guide provides detailed instructions for setting up your development environment and installing Hexalith. For a quicker start, you may refer to our Quick Start Guide.
Prerequisites
Before installing Hexalith, ensure you have the following tools and software installed on your system:
- .NET 8.0 SDK or later
-
Download and install from .NET Download Page
-
Docker Desktop
- Visit the Docker Website
-
Download and install the latest version for your operating system (Windows, macOS, or Linux)
-
Dapr CLI
-
For Windows, run the following command in PowerShell:
powershell powershell -Command "iwr -useb https://raw.githubusercontent.com/dapr/cli/master/install/install.ps1 | iex" -
For other operating systems, follow the instructions in the Dapr documentation
Step 1: Initialize Dapr
After installing the Dapr CLI, initialize Dapr in your local environment:
dapr init
This command sets up your development environment by:
- Installing Dapr sidecar binaries
- Setting up a Redis container for state store and message broker
- Setting up a Zipkin container for observability
- Creating a default components folder
Step 2: Install Hexalith Templates
Install the Hexalith project templates using the .NET CLI:
dotnet new --install Hexalith.Templates
Step 3: Create a Hexalith Project
- Create a new directory for your project and navigate to it:
bash
mkdir MyHexalithProject
cd MyHexalithProject
- Create a new Hexalith project using the template:
bash
dotnet new hexalith
Step 4: Explore the Project Structure
After creating your project, take some time to explore its structure:
src/: Contains the main application codetests/: Contains unit and integration testsDockerfile: For containerizing your application- Various configuration files for Dapr, Docker, and .NET
Step 5: Build and Run the Project
- Build the project:
bash
dotnet build
- Run the application:
bash
dotnet run --project src/YourProjectName.Api
- Open a web browser and navigate to
https://localhost:5001to see your Hexalith application running.
Next Steps
Now that you have Hexalith installed and a basic project set up, you can:
- Explore the Hexalith documentation to learn more about its features and capabilities.
- Check out our tutorials for step-by-step guides on building applications with Hexalith.
- Learn about Hexalith's core concepts and architecture.
- Join the Hexalith community on GitHub to get support and contribute to the project.
If you encounter any issues during installation or have questions, please refer to our troubleshooting guide or open an issue on our GitHub repository.
Happy developing with Hexalith!