You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,24 +9,25 @@
9
9
* MongoDB
10
10
* Postman
11
11
12
-
# Task List Status
12
+
##Task List Status
13
13
-[X] Rest controllers and models using SpringBoot
14
14
-[X] MongoDB configuration
15
15
-[X] TravisCI build
16
16
-[X] SonarQube integration
17
17
-[ ] 80% and above Code Coverage
18
18
-[ ] Cloud deployment script addition to travis
19
19
20
+
## ```Setup Steps ```
20
21
21
-
# Step 1: Creating a Database
22
+
###Step 1: Creating a Database
22
23
Get a running instance of MongoDB that you can connect to.
23
24
For more information on getting started with MongoDB, visit their [online tutorial](https://docs.mongodb.com/manual/).
24
25
25
26
Start by creating a test database. I will call mine "rest_tutorial" using the following command in the MongoDB shell, or through a database manager like MongoDB Compass:
26
27
```use rest_tutorial;```
27
28
This will create a new database in MongoDB that we can use for our tutorial.
28
29
29
-
# Step 2: Adding a MongoDB Collection and Data
30
+
###Step 2: Adding a MongoDB Collection and Data
30
31
Create a sample collection that will hold data about different types of pets. Let's create the collection with the following command:
31
32
32
33
```db.createCollection("pets");```
@@ -51,11 +52,11 @@ We can add data to the collection with the following command:
51
52
```}```
52
53
```]);```
53
54
54
-
# Step 3: Adding mongodb credentials
55
+
###Step 3: Adding mongodb credentials
55
56
Add the mongodb authentication-database, username & password in [application.properties](https://github.com/GouravRusiya30/SpringBootRestAPI/blob/master/src/main/resources/application.properties)
56
57
If there is no authrntication when you are running locally then you can also remove these properties from this file.
57
58
58
-
# Step 4: Testing Your API
59
+
###Step 4: Testing Your API
59
60
Once the server starts, you are free to test your API however you choose.
0 commit comments