Coder Social home page Coder Social logo

microsoftdocs / minimal-api-work-with-databases Goto Github PK

View Code? Open in Web Editor NEW
8.0 9.0 29.0 82 KB

sample repository for a learn module

License: Creative Commons Attribution 4.0 International

C# 21.06% JavaScript 56.04% HTML 3.79% CSS 18.89% Shell 0.23%

minimal-api-work-with-databases's Introduction

Create web apps and services with ASP.NET Core, minimal API, and .NET

.NET is a free, cross-platform, open-source developer platform for building many different types of applications. With minimal API, you can create an API in just four lines of code, while using the latest features of .NET.

Use repo with training module

This repository supports the Create a full stack application by using React and minimal API for ASP.NET Core training module of the Create web apps and services with ASP.NET Core, minimal API, and .NET path.

.NET is a free, cross-platform, open-source developer platform for building many different types of applications. With minimal API, you can create an API in just four lines of code, while using the latest features of .NET.

Use repo with training module

This repository supports the Create a full stack application by using React and minimal API for ASP.NET Core training module of the Create web apps and services with ASP.NET Core, minimal API, and .NET path.

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 [email protected] with any additional questions or comments.

Legal Notices

Microsoft and any contributors grant you a license to the Microsoft documentation and other content in this repository under the Creative Commons Attribution 4.0 International Public License, see the LICENSE file, and grant you a license to any code in the repository under the MIT License, see the LICENSE-CODE file.

Microsoft, Windows, Microsoft Azure and/or other Microsoft products and services referenced in the documentation may be either trademarks or registered trademarks of Microsoft in the United States and/or other countries. The licenses for this project do not grant you rights to use any Microsoft names, logos, or trademarks. Microsoft's general trademark guidelines can be found at http://go.microsoft.com/fwlink/?LinkID=254653.

Privacy information can be found at https://privacy.microsoft.com/en-us/

Microsoft and any contributors reserve all other rights, whether under their respective copyrights, patents, or trademarks, whether by implication, estoppel or otherwise.

minimal-api-work-with-databases's People

Contributors

ayanavakarmakar avatar camsoper avatar candidkilsborne avatar diberry avatar jongalloway avatar microsoft-github-operations[bot] avatar microsoftopensource avatar softchris avatar v-geberr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

minimal-api-work-with-databases's Issues

Questions/Concerns from Tutorial

Hello.

I decided to learn React/.Net Core API full stack development and came across this tutorial:

https://learn.microsoft.com/en-us/training/modules/build-web-api-minimal-spa/

I was able to get everything working as expected but had some questions about a couple of things:

Question 1:
In the tutorial step: Exercise - Create an API, there is a step to create a file named db.json in the PizzaClient directory:

image

Then after the step to "Prepare proxy to mock server" there is a step to "Start the mock server":

image

In this step I can open a web browser to test the API but the tutorial language seems to indicate that we can test the CRUD functionality to "make sure the changes work", however I cannot see a way to do this from the web browser:

image

Although If I click on the Pizzas hyperlink, I can see the JSON data from db.json:

image

### Should I have CRUD functionality available when I run the mock API?

Question 2:

In the tutorial step: Exercise - Start the .NET Core API server

image

When I use my web browser and point it to localhost:5100, the "Hello World" message is displayed:

image

However, localhost:5100/pizzas

Shows only pepperoni:

image

However I was expecting to see json data that reflected db.json:

image

### Was this expectation incorrect? If so what was the source of the seed data?

Question 3:

This is more related to debugging.

I was able to update my launch.json file to get VS Code to debug the PizzaClient code:

image

However I'm wonder how to set up debugging to trace into the API to be able to see end-to-end debugging.

Is there a way to do this in VS Code?

Thanks in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.