Giter VIP home page Giter VIP logo

modern-dev-env's Introduction

Modern Developer Environment

This repository is designed to showcase how to configure and use a modern polyglot development environment using containers. It shows how we can use modern tools to create an environment that is

  • Fast and simple setup
  • Fully automated
  • Real time editable
  • Debug-able

Getting Started

The simplicity of this environment is that the only real requirement is to have docker installed (the latest version even comes with docker-compose as part of the docker CLI).

Once you have docker the only other things you need is your favorite editor or IDE. In this example we have setup with VSCode but the same setup can be achieved with one or more other editors.

To start our environment we use docker compose to build and run our containers.

docker compose up

Once everything is built and started you will have 4 different apps running. You can see the results of each by going to the following URLs

These applications are functionally identical and written in 4 different languages. They all have 2 different functions

  • the root path / will return the results of a random timer and the results of a random request to https://httpbin.org/delay/.
  • You can also append the name of another service to make a call to it. For example http://localhost:8001/java will use dotnetcore to make a request to java.

The next level

Thats all great and gets the apps running. What about when I want to make changes? I need to stop and re-build them all again?

To go to the next level we can add in some extra docker compose configuration that allows us to

  • mount the local code into the container
  • allow the container to recognise changes and re-compile if needed
  • allow us to attach debuggers to the services

To run this environment we use a different docker compose files like this

docker-compose  -f docker-compose.dev.yml up --build

If we were not in a demo this would likely be the default file.

modern-dev-env's People

Contributors

scottguymer avatar

Watchers

James Cloos 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.