SamuelFisher / front-end

Front-end application for ALL the microservices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

Front-end app

Front-end application written in Node.js that puts together all of the microservices under microservices-demo.

Development

Dependencies

Name Version
Docker >= 1.12
Docker Compose >= 1.8.0
Make (optional) >= 4.1

Take it for a spin

If you want to try this out real quick on your laptop, go to the terminal and type

$ make up

This step brings all the services up using compose and the actual front-end application using Docker. The application will become available on http://localhost:8080. Adjust to the virutal machine's IP if you are using docker-machine or similar.

Once you're done with testing you can bring the whole thing down with

$ make down

Getting started

Before you start make sure the rest of the microservices are up & running.

Install the application dependencies with:

$ make deps

Testing

Make sure that the microservices are up & running

  • Unit & Functional tests:

    make test
    
  • End-to-End tests: To make sure that the test suite is running against the latest (local) version with your changes, you need to manually build the image, run the container and attach it to the proper Docker networks. There is a make task that will do all this for you:

    $ make dev
    

    That will also tail the logs of the container to make debugging easy.

    Then you can run the tests with:

    $ make e2e
    

About

Front-end application for ALL the microservices


Languages

Language:HTML 59.2%Language:JavaScript 31.8%Language:CSS 8.0%Language:Shell 0.6%Language:Makefile 0.3%