This project is a challenge from NE to build a client application in AngularJs from which we can access at the movie gateway API that acts as proxy of OmDB API (www.omdbapi.com).
https://moviesroom.herokuapp.com/
If you don't want to clone the project you can test immediately the project if you have already docker-engine on your machine. From the root project (~/omgw), just grabs the following command line:
docker-compose up
on windows terminal:
gradlew build
on linux/unix shell:
./gradlew build
on windows:
gradlew buildDocker
on linux:
./gradlew buildDocker
This task carries out in one task two important tasks:
- builds the project
- Creates the docker image of the project
#3. Deploy your project locally ##1. With gradle
gradlew bootRun
On the console, you can see two embedded tomcat's instances. So you get three interesting access to test:
- The application portal:
on windows:
on linux:
- The swagger client to test the gateway API: on windows:
on linux:
- For the metrics: on windows:
on linux:
##2. Or with/on Docker Once your docker image mmik/omgw is built as explained above, so you can boot the application:
docker run -it --name=c_omgw -p 8090:8090 -p 8091:8091 mmik/omgw:latest