0% found this document useful (0 votes)
88 views2 pages

Developer Intern Assignment

Uploaded by

kvora125
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
88 views2 pages

Developer Intern Assignment

Uploaded by

kvora125
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Building a Simple Chat Application Using WebSockets

Objective: Develop a simple chat application that uses WebSockets for real-time
communication. The application should include user validation and authentication to ensure
secure access.

Requirements:

1. User Registration and Authentication:


○ Implement user registration with basic details (username, password, email).
○ Securely store user credentials using hashing techniques.
○ Provide a login mechanism to authenticate users before they can access the chat
application.
2. WebSocket Setup:
○ Establish a WebSocket connection between the client and the server.
○ Ensure that only authenticated users can open a WebSocket connection.
3. Real-time Messaging:
○ Allow users to send and receive messages in real time.
○ Broadcast messages to all connected users.
4. Message Handling:
○ Display messages with timestamps and the sender’s username.
○ Ensure messages are transmitted and received reliably over WebSocket
connections.
5. User Interface:
○ Create a simple and intuitive user interface for the chat application.
○ Include input fields for messages and a display area for chat history.

Technical Stack:

● Frontend: HTML, CSS, JavaScript (with WebSocket API)


● Backend: [Link]
● Database: Any database of your choice (e.g., MongoDB, PostgreSQL) for storing user
credentials and chat history.

Deliverables:

● A fully functional chat application with source code.


● Documentation including setup instructions, a brief overview of the code structure, and
how authentication and WebSockets are implemented.
● A short video demo (optional) showcasing the application’s features.

Evaluation Criteria:
● Correctness and completeness of the implementation.
● Code quality and adherence to best practices.
● User experience and interface design.
● Security measures implemented.
● Documentation clarity and comprehensiveness.

Submission:

● Submit your source code in a GitHub repository or as a zip file.


● Include documentation in the repository.

For any questions or clarifications, please reach out to HR

You might also like