I'm trying to create an app in Angular 7, following the tutorial that gives you the default page

```
ng new my-app

```

I already reviewed it with `ng serve --o` and it works, but I have no idea now how to pass it to an environment outside of Angular. I've done

```
ng --build --aot = true

```

This has created a folder `/ dist / my-app` and 3 JS files come in: main.js, polyfills.js and runtime.js I opened the index.html but nothing is shown, I expected to see the same thing I was doing in development.

I tried to run them with node, doing for example `node main.js` but it has not worked, in the 3 options it says

window is not defined

Has anyone already done these deploys to see how it would be in production?

What am I doing wrong....