About
- Download and run the frontend project to see it working on Tweteroo.
Getting Started
- Have the
JDK
installed in your computer, if you don't have it or are having troubles doing that, follow the steps in this tutorial. - Install
VSCode
and make sure you have some extensions ready to be used, such as Extension Pack for Java and Spring Boot Extension Pack. - Open the application on VSCode, open the file
ApiApplication.java
and click on Run. - Now the application should be running on
port 8080
and you can access it on our browser ashttp://localhost:8080/
How it Works
POST /api/auth/sign-up
Expected body
{ username: "bobesponja", avatar: "https://super.abril.com.br/wp-content/uploads/2020/09/04-09_gato_SITE.jpg?quality=70&strip=info" }
POST /api/tweets
Expected body
{ username: "bobesponja", tweet: "eu amo o hub" }
GET /api/tweets
Expected body
[ { username: "bobesponja", avatar: "https://super.abril.com.br/wp-content/uploads/2020/09/04-09_gato_SITE.jpg?quality=70&strip=info", tweet: "eu amo o hub" } ]
Expected response
The last 5 posted tweets.
GET /api/tweets/USERNAME
Expected body
[ { username: "bobesponja", avatar: "https://super.abril.com.br/wp-content/uploads/2020/09/04-09_gato_SITE.jpg?quality=70&strip=info", tweet: "eu amo o hub" } ]
Expected response
All the tweets posted by the user.
Reference Documentation
For further reference, please consider the following sections:
- Official Apache Maven documentation
- Spring Boot Maven Plugin Reference Guide
- Create an OCI image
- Validation
- Spring Boot DevTools
- Spring Web
- Spring Data JPA
Guides
The following guides illustrate how to use some features concretely:
- Validation
- Building a RESTful Web Service
- Serving Web Content with Spring MVC
- Building REST services with Spring
- Accessing Data with JPA