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.