Skip to content
A starter Spring boot app with Elasticsearch for its data storage
Branch: master
Clone or download
Latest commit 89b93c4 Jun 30, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
src restful api created Jun 30, 2019
.gitignore Initial Commit Jun 1, 2019
LICENSE Initial commit Jun 1, 2019 Initial Commit Jun 1, 2019
mvnw Initial Commit Jun 1, 2019
mvnw.cmd Initial Commit Jun 1, 2019
pom.xml Initial Commit Jun 1, 2019

Getting Started

Run Docker

docker pull elasticsearch:6.6.2
docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:6.6.2

Kitematic for Docker

brew install kitematic

Check Elasticsearch state

curl http://localhost:9200/_cluster/state

Run Maven

mvn clean package

Create a User

curl -sXPOST http://localhost:8080/user -H "Content-Type: application/json" -d '{"username":"sufinawaz", "firstName": "Sufi", "lastName": "Nawaz"}'

Fetch a User by Username

curl -sXGET http://localhost:8080/user/username/<USERNAME> -H "Content-Type: application/json"

You can’t perform that action at this time.