Adds example section in remaining quickstart guide (#6324)

This commit is contained in:
Sujay
2022-11-23 17:51:54 +05:30
committed by GitHub
parent b4b8a0c330
commit 8c24424c40
3 changed files with 34 additions and 2 deletions

View File

@@ -18,7 +18,10 @@ ASP.NET MVC is a web application framework that implements the model-view-contro
```console
dotnet new mvc --name app
```
```console
<details>
<summary>Example</summary>
```shell
$ dotnet new mvc --name app
Welcome to .NET 6.0!
---------------------
@@ -35,6 +38,7 @@ Running 'dotnet restore' on /Users/user/app/app.csproj...
Restored /Users/user/app/app.csproj (in 84 ms).
Restore succeeded.
```
</details>
Your source code has now been generated and created in the directory.

View File

@@ -36,6 +36,16 @@ func HelloServer(w http.ResponseWriter, r *http.Request) {
```console
go mod init my.example.go.project
```
<details>
<summary>Example</summary>
```shell
$ go mod init my.example.go.project
go: creating new go.mod: module my.example.go.project
go: to add module requirements and sums:
go mod tidy
```
</details>
Your source code has now been generated and created in the directory.

View File

@@ -16,12 +16,29 @@ For Node.JS we will use the [Express](https://expressjs.com/) framework for our
```console
npm install express --save
```
<details>
<summary>Example</summary>
```shell
$ npm install express --save
added 57 packages, and audited 58 packages in 6s
7 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
```
</details>
2. Generate an example project:
```console
npx express-generator
```
```console
<details>
<summary>Example</summary>
```shell
$ npx express-generator
warning: the default view engine will not be jade in future releases
warning: use `--view=jade' or `--help' for additional options
@@ -50,6 +67,7 @@ $ npx express-generator
run the app:
$ DEBUG=express:* npm start
```
</details>
Your source code has now been generated and created in the directory.