Sample modular project using Java Spring Boot and React JS frameworks.
blog-uninassau
├── blog
│ ├── controller
│ ├── dto
│ ├── exception
│ ├── helper
│ ├── mapper
│ ├── model
│ ├── service
├── blog-js
│ ├── assets
│ ├── components
│ ├── helper
│ ├── service
- Java JDK 11+
- MySQL Server (or any other preffered database)
- Node JS v14+
- Postman (optional)
- Visual Studio Code (optional)
- Inside
blog
directory, runmvn spring-boot:run
to start the backend module. - Inside
blog-js
directory, runnpm start
to start the frontend module.
- Import
Blog_Uninassau.postman_collection.json
file in POSTMAN. - Make requests by using each HTTP method call defined within it.
- POST resquest body example to add a new article by the URL: http://localhost:8080/blog/article
{
"title": "Article #1",
"author": "Alexandre de Souza Jr.",
"date": "07/05/2022",
"text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec id erat nulla."
}
- Access Spring.io to start your own Java project using Spring Boot framework.
- Learn how to create your React module by accessing React Documentation.
- Check this link to know more about consistent and robust REST resource naming best practices.