Skip to content

This is an example infrastructure project demonstrating the implementation of Elasticsearch on .NET 8

Notifications You must be signed in to change notification settings

nurullahturkoglu/elastic-infra-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

ElasticExampleProject

This project is a .NET Core application demonstrating integration with Elasticsearch.

Table of Contents

Getting Started

To get started with the project, you'll need to have the following installed:

Project Structure

The project is organized as follows:

  • src/: Contains the source code for the application.
    • Controllers/: API controllers for handling HTTP requests.
    • Models/: Data models used within the application.
    • Program.cs: The entry point for the application.
    • appsettings.json: Configuration settings for the application.
    • appsettings.Development.json: Development-specific configuration settings.
  • docker-compose.yaml: Docker Compose file to set up Elasticsearch and other necessary services.
  • .vscode/: Configuration files for Visual Studio Code.

Configuration

Elasticsearch Setup

The application relies on Elasticsearch. You can run Elasticsearch locally using Docker. The docker-compose.yaml file is provided to simplify this process.

To start Elasticsearch using Docker Compose, run:

docker-compose up -d

This will start Elasticsearch in a Docker container.

Application Configuration

The application configuration is managed through appsettings.json and appsettings.Development.json. Ensure that the Elasticsearch connection string is correctly set in these files:

"Elasticsearch": {
  "Url": "http://localhost:9200"
}

Adjust the settings according to your environment if necessary.

Running the Application

To run the application locally, use the following command:

dotnet run --project src/src.csproj

Dependencies

  • .NET Core 6.0 or later
  • Elasticsearch
  • Docker (for containerized Elasticsearch)

Contributing

Contributions are welcome! Please fork the repository and create a pull request with your changes. Ensure that your code adheres to the project's coding standards.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

About

This is an example infrastructure project demonstrating the implementation of Elasticsearch on .NET 8

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages