Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)