ASP.NET Core backend + React frontend + Entity Framework Core + automated testing
Перейти к файлу
dependabot[bot] 295027f6ba
Bump json5 from 1.0.1 to 1.0.2 in /client
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-08 22:19:26 +00:00
.github Update codeql-analysis.yml 2022-08-12 15:46:24 -07:00
.vscode gitflow-feature: gt-docker-fixes (#16) 2020-09-22 10:24:09 -07:00
client Bump json5 from 1.0.1 to 1.0.2 in /client 2023-01-08 22:19:26 +00:00
service Update dockerfile and add docker-compose.yaml 2022-08-26 16:02:58 -04:00
.dockerignore Updated to current conventions (#11) 2020-07-23 19:30:20 -07:00
.gitignore gitflow-feature: gt-docker-fixes (#16) 2020-09-22 10:24:09 -07:00
CODE_OF_CONDUCT.md Initial commit 2019-07-22 14:10:56 -07:00
LICENSE Initial commit 2019-07-22 14:10:57 -07:00
README.md Feature/gt update core (#62) 2022-08-12 15:38:51 -07:00
SECURITY.md Microsoft mandatory file 2022-05-23 20:00:40 +00:00
docker-compose.yml Update dockerfile and add docker-compose.yaml 2022-08-26 16:02:58 -04:00
dockerfile remove comment 2022-08-26 16:12:07 -04:00

README.md

Overview

Web app template by the Microsoft Devices Software Experiences team.

Client (front-end)

Service (back-end)

How to run locally

  1. Download and install the .NET Core SDK
  2. Open a terminal such as PowerShell, Command Prompt, or bash and navigate to the service folder
  3. Run the following dotnet commands:
dotnet build
dotnet run --project Microsoft.DSX.ProjectTemplate.API
  1. Open your browser to: https://localhost:44345/swagger.
  2. In another terminal, navigate to the client folder and run the following npm commands:
npm install
npm start
  1. The webpack dev server hosts the front-end and your browser will open to: http://localhost:3000

Adding an Entity Framework Core migration

  1. Open a command prompt in the Microsoft.DSX.ProjectTemplate.Data folder.
  2. dotnet tool install --global dotnet-ef
  3. dotnet ef migrations add <NAME OF MIGRATION>

Removing the latest Entity Framework Core migration

  1. Open a command prompt in the Microsoft.DSX.ProjectTemplate.Data folder.
  2. dotnet ef migrations remove

To-Do

  1. Migrate to MSAL.js
  2. Include Authentication and Authorization logic
  3. Update dockerfile
  4. Move away from localdb
  5. Create a CLI setup wizard

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.