JavaScript Edu Resources. Angular Courses. React Tutorials. Join us!

Angular Starter from AngularClass

  • For example

    If you’re prototyping and you will fix the types later you can also declare it as type any

    If you’re importing a module that uses Node.js modules which are CommonJS you need to import as

    To run project you only need host machine with operating system with installed git (to clone this repo) and docker and thats all – any other software is not needed (other software like node.js etc. will be automatically downloaded and installed inside docker container during build step based on dockerfile).

  • Because node.js is big memory consumer you need 1-2GB RAM or virtual memory to build docker image (it was successfully tested on machine with 512MB RAM + 2GB virtual memory – building process take 7min)

    Go to main project folder.

  • To build big (~280MB) image which has cached data and is able to FAST rebuild

    (this is good for testing or staging environment) type:

    To build SMALL (~20MB) image without cache (so each rebuild will take the same amount of time as first build) (this is good for production environment) type:

    The angular-starter name used in above commands is only example image name.

  • To remove intermediate images created by docker on build process, type:

    To run created docker image on localhost:8080 type (parameter is host:container port mapping)

    And that’s all, you can open browser and go to localhost:8080.

  • You should install proxy and set sub-domain in this way:

    And in your file (linux) add line: or in yor hosting add folowing DNS record (wildchar is handy because when you add new sub-domain in future, you don’t need to touch/add any DNS record)

    And now you are ready to run image on subdomain by:

    You can quickly create a free site to get started using this starter kit in production on Netlify:



GitHub


Comments are closed, but trackbacks and pingbacks are open.