philipstaffordwood / infra-problem

worked out infrastructure as code problem
0 stars 0 forks source link

DevOps Assessment

This project contains three services:

Prerequisites

Running tests

You can run the tests of all apps by using make test

Building

First you need to ensure that the common libraries are installed: run make libs to install them to your local ~/.m2 repository. This will allow you to build the JARs.

To build all the JARs and generate the static tarball, run the make clean all command from this directory. The JARs and tarball will appear in the build/ directory.

Static assets

cd to front-end/public and run ./serve.py (you need Python3 installed). This will serve the assets on port 8000.

Running

All the apps take environment variables to configure them and expose the URL /ping which will just return a 200 response that you can use with e.g. a load balancer to check if the app is running.

Front-end app

java -jar front-end.jar

Environment variables:

Quote service

java -jar quotes.jar

Environment variables

Newsfeed service

java -jar newsfeed.jar

Environment variables