ASP Seminar
Seminarski rad za ASP MVC Algebra edukaciju
Table Of Contents
About The Project
Example project of a simple CMS based on ASP MVC .NET 6 with Entity Framework and Microsoft Identity.
Getting Started
Visual Studio 2022 recommended, alternatively anything that can build a .net 6 visual studio project.
Prerequisites
Microsoft SQL Server (Express)
Installation
- Edit the aspsettings.json, replacing SERVERHERE and DATABASEHERE with the server and database name respectively.
"DefaultConnection": "Server=SERVERHERE;Database=DATABASEHERE;TrustServerCertificate=True;Integrated Security=True;"
- Run the following commands in the package manager console:
add-migration init
update-database
-
Build and run the application
-
Default admin and password:
mail: b@b.a
pass: sifrica1
API
Access the API endpoints at:
http://localhost:PORT/api/products
http://localhost:PORT/api/product/{id}
example: http://localhost:5056/api/product/5
License
Distributed under the MIT License. See LICENSE for more information.