9 месяцев назад
История
README.md
Project: Real-time Chat Application using Deno, Oak and HTMX
This project will allow you to demonstrate your skills in real-time communication, front-end development, and back-end server handling.
Technologies to be used
- Deno: As the runtime environment to run TypeScript on the server side.
- Oak: A middleware framework for Deno’s http server, including a router middleware. This can be used as an alternative to Express.js in Deno.
- WebSocket: Deno has built-in support for WebSocket, which you can use for real-time communication.
- HTMX: You will use HTMX for building user interfaces on the client side.
- MongoDB: Deno has a third-party module for MongoDB which you can use to interact with your MongoDB database.
Features to implement
- User authentication (you can use JWT for session handling)
- Individual chat rooms
- Real-time message broadcasting
- Message history for each chat room
- Online status of users
Pseudocode
- Set up your Deno server with Oak.
- Connect your server to MongoDB using a third-party Deno module for MongoDB.
- Set up WebSocket on the server side and implement event listeners for different events like ‘open’, ‘message’, ‘close’, etc.
- Create HTMX templates for the login page, chat room list, individual chat room, etc. You can use server-side rendering to generate these templates.
- Use HTMX on the client side to handle WebSocket events and update the UI in real-time.
- Implement JWT for user authentication and session handling. You can use a third-party Deno module for JWT.
- Implement the logic for creating and joining chat rooms.
- Implement the logic for storing and retrieving message history from MongoDB.
Описание
Демонстрационный проект Deno / A Deno show case project
Конвейеры
0 успешных
0 с ошибкой