# Code pedia

## Starting your project from scratch

```
//Just for desktop. Fo Stackblitz, just skip this part!
ng new miyagi-do-lab  //use this command to create a brand new project
npm start // use this to start the project
```

{% hint style="info" %}
// is comments, do not copy it to the terminal! 😅
{% endhint %}

```
// Some codenpm test // run the spec file, unit testing
ng generate component <component> // use this to create your component 
ng add @angular/material // add Angular Material to your app
```

## Adding a new module to your app

```
ng generate module <module name>
```

{% hint style="info" %}
`app.module` is created automatically, as default from `ng new`
{% endhint %}

## Cloning from a branch in GitHub

```
git clone -b <module you want>
```

E.g.,&#x20;

```
git clone -b module_1 https://github.com/JorgeGuerraPires/udemy-course-angular-numerical-analysis.git
```

For cloning module 1, should you want to run it in your machine, do not forget `npm i` and then `npm start`
