Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonekc/course
Course application
https://github.com/jonekc/course
asp-net-core blazor csharp css docker entity-framework-core html netcore postgresql
Last synced: about 1 month ago
JSON representation
Course application
- Host: GitHub
- URL: https://github.com/jonekc/course
- Owner: jonekc
- Created: 2024-10-15T13:36:43.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-23T20:32:46.000Z (3 months ago)
- Last Synced: 2024-11-03T00:38:55.123Z (2 months ago)
- Topics: asp-net-core, blazor, csharp, css, docker, entity-framework-core, html, netcore, postgresql
- Language: C#
- Homepage: https://course-sal1.onrender.com/
- Size: 277 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Course application
A website with a C# programming tutorial. Lessons include descriptions and tests. Depending on the type of question, you can choose pre-prepared answers or write your own. Score is visible after the test. Administrator can create new courses for users and see the statistics.
## Running app locally
Execute a following command in the project root directory:
`export ConnectionStrings__StudyContext="" && dotnet run --project Server && unset ConnectionStrings__StudyContext`
Insert a correct Postgres database connection string
## Building and running a production Docker image
- `docker build --build-arg ConnectionStrings__StudyContext="" -t course .`
- `docker run -p 8080:80 --name course course`
## Database migrations
- adding a migration after a model change: `export ConnectionStrings__StudyContext="" && dotnet ef migrations add [name] --project Server && unset ConnectionStrings__StudyContext`
- removing the migration: `export ConnectionStrings__StudyContext="" && dotnet ef migrations remove --project Server && unset ConnectionStrings__StudyContext`
- updating the database: `export ConnectionStrings__StudyContext="" && dotnet ef database update --project Server && unset ConnectionStrings__StudyContext`## User credentials
This project is for demonstration purposes only so the basic user credentials are explicit:
- login - student
- password - S%342)+sA## Admin panel screenshots
![image](https://github.com/user-attachments/assets/ba2ac18b-b354-44b8-ab78-10bd9d89cb6e)
![image](https://github.com/user-attachments/assets/6e9cbd40-01d1-4d20-9719-8195c0df016f)
![image](https://github.com/user-attachments/assets/04acb2d9-bc09-435d-ae00-543b7dc4c6a6)
![image](https://github.com/user-attachments/assets/1ca05b84-2d92-478b-8460-86ccd7e836c9)