GithubHelp home page GithubHelp logo

deepsm007 / java-spring Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 18 KB

A Java Spring boot applications to implement the CRUD operation with rest api web service along with spring security and Docker.

Java 97.05% Dockerfile 2.95%

java-spring's Introduction

Java-Spring

A sample Java Spring boot applications to implement the CRUD operation with rest api web service along with spring security.

After running the application navigate to the browser and type in the URL: http://localhost:8080/users

To utilize the REST api you can use POSTMAN for the GET, POST, PUT, DELETE operations. user: admin pwd: admin

Dockerfile

The Dockerfile is added to the project to run the Java-Spring project as a docker container.

Following are the steps to build the container:

  1. Open Terminal
  2. Navigate to the project directory and make sure that the Dockerfile is in the root directory

$ cd {project directory}

  1. Type the following commands:

$ sudo docker build -t spring-boot-ws:1.0 . $ sudo docker run -d -p 8080:8080 -t spring-boot-ws:1.0

  1. To check if container is running

$ docker ps

  1. Navigate to the browser and type in the URL: http://localhost:8080/users

  2. user: admin pwd: admin

  3. Now you can use the spring application as a docker container

  4. To stop the container

$ docker stop {container_id}

For any queries you can connect with me on LinkedIN:

THANK YOU!!!

java-spring's People

Contributors

deepsm007 avatar

Watchers

James Cloos avatar  avatar  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.