Coder Social home page Coder Social logo

justin1291 / demorestapi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from voliveirajr/demorestapi

0.0 0.0 0.0 38 KB

A Demo Rest API using Spring Boot, MongoDB running in Docker containers

License: GNU General Public License v3.0

Java 98.49% Dockerfile 1.51%

demorestapi's Introduction

Demo Rest API

This is a Demo rest API using Spring Boot, MongoDB running in docker containers defined by docker-compose yml file.

A full article is available on this medium post.

Requirements

  • Java 8
  • Maven 3.3.9
  • Docker 1.13.1
  • Docker-compose 1.21.0

TL;DR - Build and Run

Will build, package and create a new Docker image with the application

mvn clean package

Launch an Application and a Mongo container

docker-compose up

Docker

The docker file defines a container based on Java with the jar created by maven package, the dockerfile-maven-plugin is responsible to build a new image, a push could be configured in the pom file also.

Docker-compose

The Docker-compose file describes our multi-container application, the application consists in 2 containers, one running the DemoRestApi and a linked container with MongoDB. These containers have the 8080 port exposed for the RestAPI and 27017 for mongo (Just for testing purposes, should preferably removed)

Next Steps

  • Tests improvements
  • Authentication

This is just a initial implementation to be used as example exercising Spring boot, Docker, MongoDB. Another features and technologies will be added to this project.

Author

Volmar Oliveira Junior

[email protected]

demorestapi's People

Contributors

voliveirajr 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.