This repository is created to test some basic features of .NET and SQL Server on Apple Silicon.
Before you begin, ensure you have the following installed on your Mac:
- .NET SDK (version 8.0 or higher, but not 9.0)
- Docker Desktop for Mac (Apple Silicon compatible)
- Visual Studio Code or Rider
- Azure Data Studio
Make sure Docker Desktop is up and running.
- Enable Virtualization Framework: In Docker Desktop, go to Settings > General and enable Use Virtualization Framework.
- Enable x86/amd64 Emulation: Go to Settings > Features in Development and enable Use Rosetta for x86/amd64 Emulation… (Note: This option may no longer be experimental).
From the root directory of this repository, run the following command to start the necessary containers:
docker-compose up -dThis will start the database and any other required services as defined in docker-compose.yml.
Open Azure Data Studio and connect to the database. The connection details (such as host, port, username, and password) can be found in the docker-compose.yml file.
Depending on your preference, you can start the application in one of the following ways:
- Using the CLI:
dotnet watchRun this command from the folder containing the API project.
- Using an IDE: Open the project in Visual Studio Code or Rider, then start the application from there.
- Seed the Database: Click on "Seed Data" in the application interface to populate the database with sample data.
- Export Data:
- Click on Export to Excel to download data as an Excel file.
- Click on Export to PDF to download data as a PDF file.
- Click on Export to Word to download data as a Word document.