This file can be used as a template for initializing and running spring projects.
What's included:
- Gradle file created from start.spring.io
- Plugins for Spotbugs, Checkstyle and Jacoco included
- Other dependencies like Mongo, MySql and redis.
- Dockerfile to start mongo server and run the spring boot application within.
Usage -
- To build the repository -
From the repository root,
- run
./gradlew build test
run the build - run
./gradlew bootjar
to create executable jar. The jar will be located inside build directories.
To run inside docker container, use below commands
To build docker image, use the command below - docker build -t your_tag_name .
To run the generated container, use this command - docker run -p8080:8080 your_tag_name
. This will run the server on 8080 port.. You can change the ports as per your needs.
License - While this repository is licensed under APACHE 2.0 license, It is mandatory for users to share the readme.md and License file along with the changes they do in the contents.