Skip to content

miniproject-bigio/chat-be

Repository files navigation

Chat Web Backend

Introduction

A Mini Project from BIGIO.ID that interacts between the server and client using socket.io

This is some routes that I created.

Routes

Table of Contents

How to Run

npm install
npm run dev
# or
yarn install
yarn dev
# or
pnpm install
pnpm dev
# or
bun install
bun dev

Port http://localhost:3000 for the socket.io to interact with backend and frontend.

Open http://localhost:3001 with your browser to see the result.

You can start editing the page by modifying app.js. The page auto-updates as you edit the file.

Libraries

  • express
  • cors
  • bcryptjs
  • dotenv
  • express-vaildator
  • jsonwebtoken
  • nodemon
  • pg
  • sequelize
  • socket.io
  • uuid
  • jest unit test
  • jest coverage test

Project Structure

──src
  ├───config
  │   ├───db.config.js
  │   └───token.config.js
  ├───controllers
  │   ├───auth.controller.js
  │   ├───message.controller.js
  │   └───user.controller.js
  ├───middlewares
  │   └───middleware.js
  ├───routes
  │   └───routes.js
  ├───schemes
  │   ├───message.model.js
  │   ├───refresh-token.model.js
  │   ├───token.model.js
  │   └───user.model.js
  └──README.md

Contributors

rizkyhaksono

LICENSE

MIT LICENSE

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published