Template project that you can use to start a new Angular application.
You can create a new repository using this one as template directly into GitHub.
Alternatively, you can clone the project locally and reset the git configuration:
git clone git@github.com:zcsadmin/template-project-angular.git my-new-angular-app
cd my-new-angular-app
rm -rf .git
git initAt this point you need to substitute some placeholder configuration in the docker-compose.yml file.
Change the value of CHANGEME strings with appropriate values, ie your application short name.
For example, you can replace the string CHANGEME with my-app.
The run.sh script will take care of managing the running containers for you.
To setup the docker environment and access the app container, you should run:
./run.sh -sWhen inside the app container, we could finally create our new application.
First, remove the .gitkeep file.
rm .gitkeepOptionally, you can disable google analytics globally:
ng analytics off -gThen, run the command that create your new angular application code:
ng new --directory . -g --style scss --defaults my-new-angular-appExit the app container and go back to your system shell.
Run the application with:
./run.shWhen ready, you can access the application with your browser at localhost:4200.