Coder Social home page Coder Social logo

airport-manager's Introduction

Airport manager

This is an example project, used to learn about Java, Spring Boot and SQL.

Running the project

Run using Podman (for Docker replace podman with docker and podman-compose with docker compose):

podman-compose build airport airplane-module steward-module
podman-compose up airport
podman-compose down airport

# or

cd airplane-module
podman build -f Dockerfile -t airplane-module
podman run -t airplane-module -e PORT=8081

cd steward-module
podman build -f Dockerfile -t steward-module
podman run -t steward-module -e PORT=8082

cd airport
podman build -f Dockerfile -t airport
podman run -t airport -e airport_url="http://localhost:8081/" -e steward_url="http://localhost:8082/" 

Run using Gradle:

PORT=8081 gradle :airplane-module:bootRun
PORT=8082 gradle :steward-module:bootRun
PORT=8080 airplane_url="http://localhost:8081/" steward_url="http://localhost:8082/" gradle :airport:bootRun

Documentation is available at

Development

Example for airplane-module:

# compile project
gradle :airplane-module:build

# just run
gradle :airplane-module:bootRun
PORT=8081 gradle :airplane-module:bootRun

# cleanup and run
gradle clean bootRun

# compile and run
gradle :airplane-module:bootJar
java -jar ./build/libs/airplane-module-*.jar 


# remove podman images
podman rmi localhost/airplane-module localhost/airport localhost/steward-module
podman images

airport-manager's People

Contributors

zyfix avatar

Watchers

 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.