A robust Spring Boot REST API providing full CRUD functionality for user management. Integrated with PostgreSQL and structured using Spring Data JPA.
- Create user
- View all users
- View by ID
- Update user
- Delete user
- Exception handling
- CORS support
- PostgreSQL integration
Java 17
Spring Boot
Spring Web
Spring Data JPA
PostgreSQL
Maven
git clone https://github.com/codeganesh452/user-management-backend.git
cd user-management-backendCREATE DATABASE usermanagementsystem;spring.datasource.url=jdbc:postgresql://localhost:5432/usermanagementsystem
spring.datasource.username=postgres
spring.datasource.password=YOUR_PASSWORD
spring.datasource.driver-class-name=org.postgresql.Driver
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
mvn spring-boot:runBackend runs on:
http://localhost:8080
| Method | Endpoint | Description |
|---|---|---|
| POST | /createuser |
Add new user |
| GET | /viewall |
Fetch all users |
| GET | /view/{id} |
Fetch user by ID |
| PUT | /user/{id} |
Update user |
| DELETE | /user/{id} |
Delete user |
src/
│── controller/
│── model/
│── repository/
│── exception/
│── UserManagementSystemApplication.java
- JWT authentication
- Role-based access
- Swagger API documentation
- Search + pagination
MIT License
You can copy the respective section into each repo's README.md file.