Welcome to the AI-Assisted Development Skills Lab! This repository contains the sample "Project Task Tracker" application we will be working on throughout the day.
Before the session, please ensure you have the following installed:
- Java 8 (or 11)
- Apache Maven
- Node.js (version 18 or higher)
- npm (comes with Node.js)
- A code editor with GitHub Copilot extension installed and enabled
This project consists of two parts:
- Backend: Spring Boot application with REST API (
/
) - Frontend: React application with Vite (
/frontend
)
This project uses an in-memory H2 database, so no external database setup is required.
-
Clone the repository to your local machine.
-
Open the project in your IDE.
-
Run the main application class: Navigate to
src/main/java/com/example/tasktracker/TaskTrackerApplication.java
and click the "Run" button provided by your IDE.Alternatively, you can run from the terminal:
mvn spring-boot:run
-
The backend will start on
http://localhost:8080
-
The REST API is available at
http://localhost:8080/api/tasks
-
Navigate to the frontend directory:
cd frontend
-
Install dependencies (first time only):
npm install
-
Start the development server:
npm run dev
-
The frontend will start on
http://localhost:5173
- Start the backend first (it will run on port 8080)
- Start the frontend in a separate terminal (it will run on port 5173)
- The React frontend will automatically communicate with the Spring Boot backend via REST API
GET /api/tasks
- Retrieve all tasks
The application automatically creates sample tasks when it starts up for the first time. The data is stored in an in-memory H2 database and will be reset when the application restarts.