Skip to content

Development#16

Merged
ranuru merged 14 commits into
mainfrom
development
May 11, 2026
Merged

Development#16
ranuru merged 14 commits into
mainfrom
development

Conversation

@ranuru

@ranuru ranuru commented May 11, 2026

Copy link
Copy Markdown
Owner

This pull request introduces user authentication and authorization to the frontend, improves the navigation experience, and adds support for creating, editing, and deleting challenges. It also sets up a local PostgreSQL database for the backend using Docker Compose. The most significant changes are grouped below.

Authentication & Authorization:

  • Added an AuthProvider context (frontend/src/context/AuthContext.jsx) to manage user login, registration, and logout, storing credentials in localStorage. Components can access user state and authentication actions via useAuth.
  • Updated the Axios API setup (frontend/src/api/axios.js) to attach authentication credentials from localStorage to each request.
  • Protected challenge-related routes in the app (frontend/src/App.jsx) so only authenticated users can access them.

Navigation & UI Improvements:

  • Added a reusable NavBar component that displays navigation links, the logged-in user's name, and a logout button; integrated it into main pages. [1] [2] [3] [4]
  • Updated the challenge list page to show which challenges the user has passed and to include a "+ New Challenge" button for creating challenges. [1] [2]

Challenge Management:

  • Added pages and routes for creating and editing challenges, and enabled challenge authors/admins to edit or delete their challenges from the challenge page. [1] [2]

Backend & Local Development Setup:

  • Added a PostgreSQL service to docker-compose.yml with persistent storage and a health check; configured the backend to use it. [1] [2]
  • Added a .dockerignore file for the frontend to speed up Docker builds and avoid copying unnecessary files.

Development Environment:

  • Updated VSCode settings to enable interactive Java build configuration updates.

@ranuru ranuru self-assigned this May 11, 2026
@ranuru ranuru merged commit 2b662e9 into main May 11, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants