https://github.com/developer-seb-v/baseballapi_verson1.0
asp dot net 8 api using docker for data persistence
https://github.com/developer-seb-v/baseballapi_verson1.0
asp-net-core backend docker entity-framework identity microsoft mysql postgresql relational-database
Last synced: about 2 months ago
JSON representation
asp dot net 8 api using docker for data persistence
- Host: GitHub
- URL: https://github.com/developer-seb-v/baseballapi_verson1.0
- Owner: developer-seb-v
- Created: 2024-09-29T18:06:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-24T04:12:26.000Z (over 1 year ago)
- Last Synced: 2025-03-24T05:23:52.876Z (over 1 year ago)
- Topics: asp-net-core, backend, docker, entity-framework, identity, microsoft, mysql, postgresql, relational-database
- Language: C#
- Homepage:
- Size: 17.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a baseball-themed web api using dotnet 8, C#, and two Docker containers (MySql and postgreSQL).
It uses Docker for running MySql and PostgreSQL containers.
The baseball tables are stored in MySql DB.
PostgreSQL container is used for authentication using Asp.Net Core Identity library and entity framework.
It utilizes the MySql.Data library to access the container instance, create tables, and retrieve data via controller API endpoints.
Check out db_resources.txt for table diagrams and some seed data so you can get started with learning docker in a terminal.
The project was created in Ubuntu Linux 22.04/24.04 and Mac OS. Should work fine using Windows as well. I've been able to replicate it in VS code and Rider IDEs.
INSTRUCTIONS FOR USE
You need to install: Docker, dotnet 8 SDK, and IDE of choice (vs code, Rider, etc.)
Follow instructions in HERE to create the necessary Docker volume for data persistence and containers for running your MySQL queries, etc.
If you want to add Authentication/Authorization, then follow the instructions HERE to get the PostgreSQL container running for ASP DOT NET CORE Identity.