Skip to content

Commit 6a1a8ef

Browse files
Documentation updates
1 parent 50246eb commit 6a1a8ef

File tree

3 files changed

+26
-15
lines changed

3 files changed

+26
-15
lines changed

README.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,52 @@
11
# RESTful API server app with Java Spring Reactive Framework
22
A light-weight RESTful API server starter app built with Java Spring Reactive Framework, MongoDB, WebFlux and Gradle.
33

4-
### Running the App with Docker
5-
Use the below to run mongoDB and the app on docker containers.
4+
### Running everything on Docker:
5+
Using ```docker-compose``` run both mongoDB and the app as docker containers.
66
```
77
./gradlew clean build
88
docker-compose up
99
```
1010

11-
### Running the App without Docker
11+
### Not familiar with Docker? No problem run it locally on your machine:
1212
For this you will need to set up the MongoDB Locally on your machine(Refer the Local MongoDB Setup section towards the end.).
13-
Add the configurations in ```application.properties```
13+
Add the configurations in ```application.properties``` and run the below or use your fav IDE:
1414
```
1515
./gradlew clean build
1616
./gradlew bootRun
1717
```
1818

19-
### Try the CRUD - Use cURL to access / test the APIs.
20-
Once the server is running try the following APIs:
19+
### Try the CRUD. Test the endPoints / REST APIs.
20+
Once the server is running try to access the below APIs using ```cURL``` or ```POSTMAN``` or any tool that you are already using.
2121

22+
CREATE:
23+
```POST``` /api/add
2224

23-
GET /api/get
2425
```
25-
curl http://localhost:4000/api/get
26+
curl -X POST -d '{"name":"Giri Jeedigunta","email":"giri@yopmail.com"}' -H "Content-Type: application/json" http://localhost:4000/api/add -v
2627
```
2728

28-
GET /api/get/{email}
29-
29+
READ:
30+
```GET``` /api/get
3031
```
31-
curl http://localhost:4000/api/get/{email}
32+
curl http://localhost:4000/api/get
3233
```
3334

34-
POST /api/add
35+
```GET``` /api/get/{email}
3536

3637
```
37-
curl -X POST -d '{"name":"Giri Jeedigunta","email":"giri@yopmail.com"}' -H "Content-Type: application/json" http://localhost:4000/api/add -v
38+
curl http://localhost:4000/api/get/{email}
3839
```
3940

40-
POST /api/udpate/{id}
41+
UPDATE:
42+
```POST``` /api/udpate/{id}
4143

4244
```
4345
curl -X POST -d '{"name":"Giri J","email":"giri@giri.com"}' -H "Content-Type: application/json" http://localhost:4000/api/update/5f85c2c8b0abe7062019dd16
4446
```
4547

46-
POST /api/delete/{id}
48+
DELETE:
49+
```POST``` /api/delete/{id}
4750

4851
```
4952
curl -X POST http://localhost:4000/api/delete/5f85c2c8b0abe7062019dd16

gcp-deployment-scripts/app-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#
2+
# Author: Giri Jeedigunta
3+
# Git: https://github.com/giri-jeedigunta/java-spring-mongo-starter-reactive
4+
#
15
apiVersion: apps/v1
26
kind: Deployment
37
metadata:

gcp-deployment-scripts/db-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#
2+
# Author: Giri Jeedigunta
3+
# Git: https://github.com/giri-jeedigunta/java-spring-mongo-starter-reactive
4+
#
15
apiVersion: v1
26
data:
37
createuser.sh: |-

0 commit comments

Comments
 (0)