Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rahulrathore44/laptopbagspringboot

A simple project built using Spring Boot. Deploy rest api for performing CRUD operation.
https://github.com/rahulrathore44/laptopbagspringboot

Last synced: 1 day ago
JSON representation

A simple project built using Spring Boot. Deploy rest api for performing CRUD operation.

Awesome Lists containing this project

README

        

# Laptop Bag

A simple project built using Spring Boot. Deploy rest API for performing CRUD operation.

* Java - 1.8
* Swagger - http://localhost:9191/swagger-ui.html

## To Start the application, execute the following command from command prompt

`java -jar laptopbag-0.0.1-SNAPSHOT.jar`

The application will start at default port - **9191**

## To Start the application on a specific port, execute the following command from command prompt

`java -jar -Dserver.port=8989 laptopbag-0.0.1-SNAPSHOT.jar`

The application will start at default port - **8989**

## Packaging the application

Run the following command to build and package the application (**jar**).

`mvn package`

# YouTube

[https://www.youtube.com/fluxay44](https://www.youtube.com/fluxay44)

## Docker image

Run the following command to build the image and tags it as `spring-io/laptop-bag`.

`mvn package`

`docker build -t spring-io/laptop-bag .`

Run the container using the image

`docker run -d -p : spring-io/laptop-bag`

Example: `docker run -d -p 9191:9191 spring-io/laptop-bag`

You can access the application on port **9191**

**The application deployed using the Docker container will run only port number 9191.**