Simple Spring Boot + React project for managing courses with JWT authentication.
src/→ Backend (Spring Boot)courseapp-frontend/→ Minimal frontend (React)postman/→ Postman collection & test run files
- User registration and login with JWT
- Generated JWT token lasts for 1 day
- Role-based access control (
USER,ADMIN) - CRUD operations for courses admin's can do (
GET,POST,PUT,DELETE) - Frontend login and register forms
- Backend secures all course-related endpoints
-
Backend
- Make sure you have Java 17+ and Maven installed.
- Configure your
application.properties(JWT secret, database URL, username, password). - Run:
mvn spring-boot:run
- By default, backend runs on
http://localhost:8080.
-
Frontend
- Go to
courseapp-frontend/folder:npm install npm start
- Frontend runs on
http://localhost:3000.
- Go to
-
Database
- Database tables are auto-created by Spring JPA based on the entities.
- Make sure your database credentials in
application.propertiesare correct.
-
Testing with Postman
- Import Postman collection from
postman/folder. - You can test all endpoints including login, register, and courses CRUD.
- Import Postman collection from
- Improve frontend UI/UX
- Add pagination and filtering for courses
- Add unit and integration tests
- Dockerize the application
- Deploy backend and frontend (e.g. Render / Vercel)