ASP.NET Core backend + React frontend + Entity Framework Core + automated testing
Перейти к файлу
Ben Carpenter 0c88618673
Merge pull request #59 from microsoft/feature/bc-add-pull-request-template
Add pull request template
2022-07-08 14:13:39 -07:00
.github Add pull request template 2022-06-14 08:19:15 -07:00
.vscode gitflow-feature: gt-docker-fixes (#16) 2020-09-22 10:24:09 -07:00
client Fixed missing information in package-lock.json 2022-07-07 11:45:14 -05:00
service Reverted changes on Service configurations. 2022-06-30 14:12:48 -05: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 Replaced ADAL with MSAL 2022-06-29 10:48:21 -05:00
SECURITY.md Microsoft mandatory file 2022-05-23 20:00:40 +00:00
dockerfile gitflow-feature: gt-docker-fixes (#16) 2020-09-22 10:24:09 -07: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. Add Docker file
  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.