Git Product home page Git Product logo

backpacker-api's Introduction

#Backpacker

sudo docker-compose up --remove-orphans --build

#http://localhost:8080/swagger-resources #http://localhost:8080/v2/api-docs #http://localhost:8080/swagger-ui/index.html

for access logging mvn spring-boot:run -Dreactor.netty.http.server.accessLogEnabled=true

Build Project

  • docker run --rm -u gradle -v "$PWD":/home/gradle/project -w /home/gradle/project gradle:5.4.1-jdk11 gradle build: Build the project using a Gradle Docker and generate the JAR file at build/libs/project.jar

Run Project

  • docker-compose up -d: Create and Start Docker Instances;
  • docker ps: Check docker instances, there are one instance spring-app and other spring-mongodb;
  • http://localhost:8080/hello: Test the Hello World!!!

Rebuild the Project after changes

  • docker-compose stop: Stop all Instances from docker-compose.yml file;
  • docker rm spring-app: Delete the App Docker Instance;
  • docker rmi springboot-webflux-docker_springboot: Delete The App Docker Image;
  • Build Project;
  • Run Project.

Dockers

Docker Images

  • gradle: Image with Gradle;
  • openjdk: Image with Java JDK 11;
  • demo_springboot: Image based on openjdk that contain the JAR file;
  • mongo: Image with MongoDB.

Docker Instances

  • spring-app: Running the demo_springboot image. There are a service with Netty Server running the JAR file at port 8080;
  • spring-mongo: Running the mongo image. There are a service with Mongo DB Instance at port 27017.

Docker Commands

  • docker ps: show all Docker Instances running;
  • docker ps -a: show all Docker Instances;
  • docker images: show all Images;
  • docker-compose stop: Stop all Instances from docker-compose.yml file;

backpacker-api's People

Contributors

shanwije avatar

Stargazers

 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.