Skip to content

London | 26-SDC-July | Shaghayegh Far| Sprint 2 | Chat-app - #126

Open
shaghayeghfar wants to merge 1 commit into
CodeYourFuture:mainfrom
shaghayeghfar:chat-app
Open

shaghayeghfar wants to merge 1 commit into
CodeYourFuture:mainfrom
shaghayeghfar:chat-app

Conversation

@shaghayeghfar

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Task code

CYF-1162

Changelist

Implemented a full-stack chat application with a Java Spring Boot backend, PostgreSQL database, and HTML/CSS/JavaScript frontend. Added user names, message timestamps, message persistence, and automatic message updates.

@shaghayeghfar shaghayeghfar added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Oct 1, 2026
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Oct 7, 2026

@LonMcGregor LonMcGregor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good start on this, you are the first person I have seen complete this using Java.

Part of the task is to deploy the app. Is the chat app deployed anwhere we can test it? It's usually a good idea to include this in the PR text.

One of the tasks is to add an additional feature beyond simple messaging. What feature did you add?

I've got a few questions about the code you have built.

import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin(origins="http://localhost:63342")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a lot of hard coded URLs. As this is the first time I'm seeing this code, is there anything you could do that would help me find all this important info more easily?

class ChatAppApplicationTests {

@Test
void contextLoads() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You comitted a test class but it is empty. Was that intentional?

@@ -0,0 +1,6 @@
package com.shaghayegh.chat_app.repository;
import com.shaghayegh.chat_app.model.Message;
import org.springframework.data.jpa.repository.JpaRepository;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You import a lot of these packages - can you explain what they do and why you chose them?

import java.util.List;

@RestController
@CrossOrigin(origins= "http://localhost:63342")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain what this decorator does?

messageInput.value = "";
feedback.textContent = "";

loadMessages();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need to call loadmessages after doing a send message?

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants