Git Product home page Git Product logo

revou-fsse-2 / week-11-muhammad-avicena Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 2.0 600 KB

DeezChat App, a Real-Time Chat built using Vanila.js, Node.js, Express.js, WebSocket, MongoDB and implemented RBAC with JWT, Api docs by Swagger, Unit Testing by Jest.

Home Page: https://deezchat.avicena.dev

HTML 21.50% CSS 3.98% JavaScript 74.52%
fullstack-development node-express-mongodb real-time-chat-app

week-11-muhammad-avicena's Introduction

header

Fancy to see you here

hi, I'm Muhammad Avicena. In this repo, I build a Real Time Chat application implemented role-based access using Vanila.js, Node.js, Express.js, Socket.io, MongoDB, Jest and Swagger. It's designed to interact with each other like group chat. If you have any question or feedback, hit me up at anytime !

I am committed to staying up-to-date with industry trends and using the latest tools to develop innovative solutions that surpass expectations. Interested to have collaboration ? Find me on:

Linkedin Badge Youtube Badge Instagram Badge Gmail Badge

INGREDIENTS I USE ๐Ÿ“œ

  • WebClient
    • Vanila JS
    • Tailwind CSS
  • WebServer
    • Node.js
    • Express.js
    • JWT for Role-Based Access Controll
    • WebSocket/Socket.io for Real Time Connection
    • MongoDB
  • Unit Testing
    • Jest
  • API Documentation
    • Swagger UI

ARCHITECTURE ๐ŸŒŸ

arch

HOW TO SET UP ๐Ÿ“ฐ

You will need a github account to clone this repository, make sure you're connected to github.

# Clone this repository or simply fork it.

- git clone https://github.com/muhammad-avicena/deez-chat-app.git

# Install depedencies

- npm install

# Set up the .env file, follow the template from `.env.example`.

  # PORT
  PORT=5001

  ## Database connection
  DB_PROD=
  DB_DEV=
  DB_NAME=

  ## JWT Sign
  JWT_SIGN=

# Run the application

- npm run start
- npm run dev

AVAILABLE API ๐Ÿ“ฐ

Endpoint : https://deezchat.avicena.dev

Name HTTP Method Endpoint Requirements
Login User POST /api/v1/auth/login Request Body: username: string, password: string
Register User POST /api/v1/auth/register Request Body: username: string, password: string, gender: string
List All User GET /api/v1/users
List User by ID GET /api/v1/users/:id Request Params: id: number
Update User role PATCH /api/v1/users/role/:id Request Params: id: number Request Body: role: string
List All Rooms GET /api/v1/rooms
Create a room POST /api/v1/rooms Request Body: roomName: string, username: string
Delete Room by ID DELETE /api/v1/rooms/:id Request Params: id: number
User Join POST /api/v1/participants Request Body: roomName: string, username: string
Get User Join GET /api/v1/participants?roomName={roomName}&username={username} Request Query: roomName: string, username: string
Get User Join by RoomName GET /api/v1/participants/list?roomName={roomName} Request Query: roomName: string
User Leave DELETE /api/v1/participants Request Body: username: string

Swagger UI - API Documentation and Testing โšก

Detail documentation will be shown here : https://deezchat.avicena.dev/api-docs swagger

DEPLOYMENT โš™๏ธ

Alt text

The project has been successfully deployed using Railway. You can access the production version of the website by following this link: https://deezchat.avicena.dev.

Feel free to explore the website and try out the different features. I appreciate any feedback and suggestions to further improve the user experience.

week-11-muhammad-avicena's People

Contributors

github-classroom[bot] avatar muhammad-avicena avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.