Skip to content

Project template for Angular 9 + VSCode config for using the Remote-Container extension

License

Notifications You must be signed in to change notification settings

juanje/angular-template

Repository files navigation

PROYECTO

This project was generated with Angular CLI version 9.1.1.

The current project name is PROYECTO, probably the first thing you like to do is to change it. To do that, run this script:

$ set_project_name.sh

Local development with VS Code and Docker

This project is ready to use the extension Remote Development for Visual Studio Code. This means that is you've that extension and Docker installed, you can run your VS Code inside a container with this code and use all its capabilities (linting, debugging, run scritps, etc).

Just install the extensions, open this directory and it will ask you if you want to open it inside the container. Say yes and start coding. See more info here: https://code.visualstudio.com/docs/remote/containers

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.