Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcoscostadev/maui-sql-server-docker
This project was created with a simulation of connection between maui and sql server
https://github.com/marcoscostadev/maui-sql-server-docker
Last synced: about 10 hours ago
JSON representation
This project was created with a simulation of connection between maui and sql server
- Host: GitHub
- URL: https://github.com/marcoscostadev/maui-sql-server-docker
- Owner: MarcosCostaDev
- License: mit
- Created: 2023-10-02T02:06:50.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-07T13:15:59.000Z (about 1 year ago)
- Last Synced: 2023-10-07T14:22:19.602Z (about 1 year ago)
- Language: C#
- Size: 166 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# MAUI WITH SQL SERVER
This is a todo app that connects the SQL Server in a localhost through docker using SQL server image for linux container.
## Requirements
- dotnet 7 with MAUI package
- Docker desktop (windows) / docker and docker compose (linux)
- Running on Windows OR Android Emulator## How to run
### Start SQL Server in Docker
In case you don't have SQL Server installed, or you won't to install it, you can run it through a docker container. Follow these steps for doing that:
For Windows:
```
docker-compose -f ./src/Docker-compose.yml up
```For linux:
```
docker compose up -f ./src/Docker-compose.yml up
```### Start the App
#### In Windows through Visual Studio 2022 with MAUI package
- Open the solution and click on Run "Windows Application" or Android emulator of your choice.
#### In linux through the Terminal
- [Install .NET SDK](https://dotnet.microsoft.com/en-us/download)
- Install .NET MAUI workload with the dotnet CLI. Launch a command prompt and enter the following:
```
dotnet workload install maui
```- Verify and install missing components with maui-check command line utility.
```
dotnet tool install -g redth.net.MAUI.checkmaui-check
```- Run the MAUI app in the Android Simulator.
```
dotnet build run --project ./src/TodoMaui/TodoMaui.csproj -f net7.0-android
```