This project is an example of a react front-end application that consumes a rest api built with Java Spring Boot.
Features:
- User registration
- User login
- User logout
- Profile update
- User deletion
My main goal with this project is to learn about Java Spring Boot and implement authentication using OAuth 2.0 through Firebase
The app was developed with Node.js 20.10.0
- Clone the repository
- Install dependencies with
npm install
- Run the app with
npm run dev
Don't forget to set the environment variables in a .env
file. Use the .env.example
file as a template.
The API was developed with Java 17 and Spring Boot 3.2.4
- Clone the repository
- Open the project with your favorite IDE, if posible IntelliJ IDEA
- Resolve dependencies with Maven
- Run the application through the IDE
Don't forget to set the environment variables in a .env
file. Use the .env.example
file as a template.
For IntelliJ IDEA there is a .run
folder with the configuration to run the application or tests. Install the plugin EnvFile to load the environment variables from the .env
file.
If you plan to use the Firebase emulator you need to create a .firebaserc
file inside the root of the java project with the following content:
{
"projects": {
"default": "<project-name>"
}
}
To avoid any issues, it is recommended that the name of the project is the same as the one mentioned in the Google credentials environment variable.