Skip to content

RunMyProject/api-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to API-TEST !

Description of the project: a User places an Order by purchasing a set of Products. When the Order is still open, other Products can be added. Once the Order has been confirmed, this will then be accepted and closed once that has been delivered. The User can then decide to seek compensation once the Order has been processed. Models in Java/MongoDB: User, Product, Order. This guide walks you through the process of building a Docker image for running a Spring Boot 2 App with Mongo DB.

What you’ll build

Docker is a Linux container management toolkit with a "social" aspect, allowing users to publish container images and consume those published by others. A Docker image is a recipe for running a containerized process, and in this guide we will build one for a simple Spring Boot 2 App.

What you’ll need

You can also import the code straight into your IDE

Set up a Spring Boot 2 App

If you want to run with Maven, execute:

./mvn package && java -jar target/api-test-0.0.1-SNAPSHOT.jar

and go to http://localhost:8080/ to see the API TEST home page.

Containerize It

If you want to run with Docker, execute:

./docker-compose up

Summary

Congratulations! You’ve just created a Docker container for a Spring Boot 2 App!

Basically the Spring Boot 2 Apps run on port 8080 inside the container by default and we mapped that to the same port on the host using "-p" on the command line.

See Also

The following guides may also be helpful:

About

A set of API services to manage payment orders

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages