ASP.NET Core backend + React frontend + Entity Framework Core + automated testing
Перейти к файлу
Abe-Froman f5f717bd14
Merge pull request #45 from microsoft/dependabot/npm_and_yarn/client/url-parse-1.5.10
Bump url-parse from 1.4.7 to 1.5.10 in /client
2022-05-11 15:04:34 -07:00
.github .NET 5 Upgrade (#23) 2021-01-04 14:16:39 -08:00
.vscode gitflow-feature: gt-docker-fixes (#16) 2020-09-22 10:24:09 -07:00
client Merge pull request #45 from microsoft/dependabot/npm_and_yarn/client/url-parse-1.5.10 2022-05-11 15:04:34 -07:00
service .NET 5 Upgrade (#23) 2021-01-04 14:16:39 -08: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 structure updates (#15) 2020-09-09 16:39:17 -07: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.