Skip to content

Commit 399b86e

Browse files
committed
docs(introduction): add degit to alternative
Alternative installation to include both git and degit
1 parent 19f372d commit 399b86e

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

content/introduction.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,30 @@ $ nest new project-name
2525

2626
#### Alternatives
2727

28-
Alternatively, to install the TypeScript starter project with [degit](https://github.com/Rich-Harris/degit):
28+
Alternatively, to install the TypeScript starter project with **Git**:
29+
```bash
30+
$ git clone https://github.com/nestjs/typescript-starter.git project
31+
```
32+
33+
This will be cloning the starter project repository with it's entire commit history.
34+
35+
To clone the repository without it's history, [degit](https://github.com/Rich-Harris/degit) can be used:
2936

3037
```bash
3138
$ npx degit nestjs/typescript-starter project
39+
```
40+
41+
After cloning the starter project:
42+
43+
```bash
3244
$ cd project
3345
$ npm install
3446
$ npm run start
3547
```
3648

3749
Open your browser and navigate to [`http://localhost:3000/`](http://localhost:3000/).
3850

39-
To install the JavaScript flavor of the starter project, use `javascript-starter.git` in the command sequence above.
51+
To install the JavaScript flavor of the starter project, replace `typescript-starter` with `javascript-starter` in the `git clone` or `degit` commands above.
4052

4153
You can also manually create a new project from scratch by installing the core and supporting files with **npm** (or **yarn**). In this case, of course, you'll be responsible for creating the project boilerplate files yourself.
4254

0 commit comments

Comments
 (0)