> For the complete documentation index, see [llms.txt](https://docs.nesula.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nesula.com/nesula-devops/nesula-deploy/deploy-development.md).

# Deploy: Development

Deploying changes to development environment

## Navigate to root app development folder

```
$ cd /var/www/dev.nesula.com/nesula
```

## Pull From Github

This will subject to your Git branch workflow&#x20;

```
$ git checkout master [ Assumes Development is on master branch ]
$ git pull      
```

## Angular

```
$ cd /var/www/dev.nesula.com/nesula/angular-app
$ npm install         [ OPTIONAL: Install or update any new npm packages listed in package.json ]
$ npm run start:dev   [ Build angular javascript for dev environment ]
```

The start:dev command does the following:

* Set the Angular .env file to development
* Run ng build to compile files in an angular default development mode
* Start angular server by default on port 4200&#x20;

## NestJS

```
$ cd /var/www/dev.nesula.com/nesula/nest-api
$ npm install        [ OPTIONAL: Install or update any new npm packages lsited in package.json ]
$ npm run build      [ Delete / dist & build angular javascript ]
$ npm run start:dev [ Starts NestJS node app with pm2 in prod mode ]
```

The NestJS NPM start:dev command does the following:

1. Set NestJS .env file to development
2. Delete the /dist folder
3. Delete the log file
4. Build application files in the /dist folder
5. Copy handlebar email templates used by NestJS server pages to /dist folder
6. Launch the app with node server
