[SRD] Modified to correct the read me file indentation

Modified to correct the read me file indentation
parent ee7fc0b7
# spring-reactive-demo
# Build Reactive Rest APIs with Spring WebFlux and Reactive MongoDB
Requirements
Java - 1.8.x
## Requirements
Maven - 3.x.x
1. Java - 1.8.x
MongoDB - 3.x.x
2. Maven - 3.x.x
Steps to Setup
1. Clone the application
``
3. MongoDB - 3.x.x
## Steps to Setup
**1. Clone the application**
```bash
git clone https://gitlab.mynisum.com/vrajesh/spring-reactive-demo.git
``
```
2. Build and run the app using maven
**2. Build and run the app using maven**
``
```bash
cd spring-reactive-demo
``
``
mvn package
``
``
java -jar target/spring-reactive-demo-1.0-SNAPSHOT.jar
``
```
Alternatively, you can run the app without packaging it using -
``
```bash
mvn spring-boot:run
``
```
``
The server will start at http://localhost:8080.
``
The server will start at <http://localhost:8080>.
Exploring the Rest APIs.
## Exploring the Rest APIs
The application defines following REST APIs -
The application defines following REST APIs
``
```
1. GET /myTweets - Get All Tweets
``
``
2. POST /createTweet - Create a new Tweet
``
``
3. GET /myTweets/{tweetId} - Retrieve a Tweet by Id
``
3. GET /myTweets/{id} - Retrieve a Tweet by Id
``
4. PUT /myTweets/{tweetId} - Update a Tweet
``
3. PUT /myTweets/{id} - Update a Tweet
``
5. DELETE /myTweets/{tweetId} - Delete a Tweet
``
4. DELETE /myTweets/{id} - Delete a Tweet
``
6. GET /stream/tweets - Stream tweets to a browser as Server-Sent Events
``
4. GET /stream/tweets - Stream tweets to a browser as Server-Sent Events
```
Running integration tests
## Running integration tests
``
The project also contains integration tests for all the Rest APIs. For running the integration tests, go to the root directory of the project and type mvn test in your terminal.
``
\ No newline at end of file
The project also contains integration tests for all the Rest APIs. For running the integration tests, go to the root directory of the project and type `mvn test` in your terminal.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment