Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wojwozniak/aspnetcore-webshop
End project for ASP.NET course
https://github.com/wojwozniak/aspnetcore-webshop
csharp css dotnet dotnet-core online-shop
Last synced: 10 days ago
JSON representation
End project for ASP.NET course
- Host: GitHub
- URL: https://github.com/wojwozniak/aspnetcore-webshop
- Owner: wojwozniak
- Created: 2024-12-09T20:45:24.000Z (13 days ago)
- Default Branch: main
- Last Pushed: 2024-12-09T21:27:35.000Z (13 days ago)
- Last Synced: 2024-12-09T21:34:38.011Z (13 days ago)
- Topics: csharp, css, dotnet, dotnet-core, online-shop
- Language: HTML
- Homepage:
- Size: 0 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# Full-stack .NET online shop app
This repo contains end of semester project for ASP.NET Course - full-stack .NET app of online shop.
It contains two solutions - `WebApi` with backend code and `WebShop` with frontend.## File structure
### Database
Database directory contains everything needed to understand database schema and to reconstruct the database locally.
in `/description` there is a schema of the database, while in `/sql` you can find sql queries to create tables and to populate it with mock data.
### WebApi
Backend
### WebShop
Frontend## How to run
### Database setup
- Create 'ShopDb' in your Microsoft SQL Server.
- Copy connection string data, keep it for a moment
- Run `init_tables.sql`
- Run `populate_tables.sql`
### Backend setup
- Start `WebApi.sln` in a VS instance
- Run `dotnet restore` to install all needed packages
- Replace connection string with your own. Your appsettings.Development.json should look like this
```json
{
"ConnectionStrings": {
"DefaultConnection": "Server=LAPTOP\\MSSQLSERVER01;Database=ShopDb;Integrated Security=True;TrustServerCertificate=True;"
}
}
```
- Run it
### Frontend setup
- Start `WebShop.sln` in a VS instance
- Run `dotnet restore` to install all needed packages
- Run it### Developer footnotes
- When you start project again, you need to start it in this sequence
- If you make changes to backend, regenerate `swagger.json` file (regeneration is buggy, delete swagger.json from OpenAPIs directory and add it again by putting in URL and "WebApi" className)