This is a RESTful API built using Spring Boot, PostgreSQL, and Docker, deployed on Google Cloud. The API utilizes JWT for security and is tested using Postman and Swagger.
The project is structured as follows:
- src/main/java: Java source code
- src/main/resources: Application configuration files
- Dockerfile: Docker configuration file
- docker-compose.yml: Docker Compose configuration file
- build.gradle: Gradle build configuration file
- Spring Boot: Latest version
- PostgreSQL: Database management system
- Docker: Containerization platform
- Google Cloud: Cloud platform for deployment
- JWT: JSON Web Token for security
- Postman: API testing tool
- Swagger: API documentation tool
- JDK 21: Java Development Kit
- Gradle: Build tool
- Clone the repository:
git clone https://github.com/sreyny-dev/mobile-banking-api
- Build the project:
./gradlew build
- Run the project:
./gradlew bootRun
- Access the API: http://localhost:8080/swagger-ui/index.html
The API documentation is available at http://localhost:8080/swagger-ui/index.html. This documentation provides information on available endpoints, request and response formats, and authentication mechanisms.
The API uses JWT for security. To access protected endpoints, you need to obtain a JWT token by sending a POST request to the /login endpoint with valid credentials.