GithubHelp home page GithubHelp logo

crud-api's Introduction

CRUD Operations With Java

CRUD Operations using Spring and Docker.

Table Of Contents

  1. Tech Stack
  2. Docker Assets
  3. Run The Application
  4. Use Postman
  5. Postgres Admin With Container

1. Tech Stack

  • Java
  • Spring
  • PostgreSQL
  • Docker & Docker Compose

2. Docker Assets

  • Compose file: To run the 3 services for dockerized Java app, Postgres database and PG admin.
  • Dockerfile: To build the Docker image for Java - Spring application.

3. Run The Application

Execute the command to run the application with containers.

docker compose up --build

Containers

docker ps
CONTAINER ID   IMAGE               COMMAND                  CREATED          STATUS          PORTS                           NAMES
fa7aa96e3400   crud-api-crud-app   "java -jar /app-1.0.…"   10 minutes ago   Up 10 minutes   0.0.0.0:8080->8080/tcp          crud-app-c
a663d91bc97b   postgres:12         "docker-entrypoint.s…"   21 hours ago     Up 10 minutes   0.0.0.0:5432->5432/tcp          crud-db-c
685f9814df29   dpage/pgadmin4      "/entrypoint.sh"         21 hours ago     Up 10 minutes   443/tcp, 0.0.0.0:8081->80/tcp   crud-pg-c

4. Use Postman

API/Endpoints:

img

5. Postgres Admin With Container

img

crud-api's People

Contributors

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