Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/rahulrathore44/laptopbagspringboot
- Owner: rahulrathore44
- License: gpl-3.0
- Created: 2020-05-26T01:43:10.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-16T15:03:51.000Z (22 days ago)
- Last Synced: 2024-10-18T02:47:24.451Z (21 days ago)
- Language: Java
- Size: 33.1 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.**