Coder Social home page Coder Social logo

marmanik / angular-docker-dev-environment Goto Github PK

View Code? Open in Web Editor NEW

This project forked from talohana/angular-docker-dev-environment

0.0 1.0 0.0 15 KB

Seed for developing Angular project entirely on Docker

License: MIT License

Dockerfile 100.00%

angular-docker-dev-environment's Introduction

Angular Docker Dev Environment

Develop an Angular app entirely on docker

Prerequisites

Notes

  • For git-bash users, prefix the interactive docker command with winpty
  • Before installing, you can override the ng new command at the docker-compose.seed.yml entrypoint property

Installing

Create Angular project by running

docker-compose -f docker-compose.seed.yml run seed

After successful initialization remove the docker-compose.seed.yml file

Running

Start the development server run docker-compose up -d --build

Inspect the server logs with docker-compose logs -f dev

Access the dev server from your browser run docker-machine ip and access the given ip at port 4200.
Once the server is running it will poll changes from host and auto reload the page.

Attach the container with

docker-compose exec dev sh

Copying node_modules

You should copy the node_modules directory from your container after every package addition, to do so run:

docker cp dev:/usr/src/app/package-lock.json . && \
docker cp dev:/usr/src/app/node_modules - > temp_node_modules.tar && \
    tar -xf temp_node_modules.tar && \
    rm -f temp_node_modules.tar

This process might take some time, but keep in mind you won't run it so often

Authors

  • Tal Ohana

License

This project is licensed under the MIT License - see the LICENSE file for details

angular-docker-dev-environment's People

Contributors

talohana avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.