Coder Social home page Coder Social logo

kenandropic / chat-app Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 2.21 MB

Live chat app. WebSockets.

JavaScript 0.61% TypeScript 93.85% HTML 0.55% CSS 4.08% Dockerfile 0.90%
nestjs postgresql reactjs socket socket-io materailui typeorm typescript

chat-app's Introduction

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Live Chat Application

Application currently is not deployed.


Installation and running on localhost (backend)

  • npm install (install dependencies)
  • npm prebuild
  • npm run build (convert typescript files to js)
  • npm start
  • npm start:dev
  • npm start:debug
  • npm start:prod

Installation and running on localhost (frontend)

  • npm install (install dependencies)
  • npm run dev
  • npm run build (convert typescript files to js)

Characteristics

  • Authentication
    • User registration
    • User login
    • Get logged user
    • Implemented access and refresh tokens
    • Logout
  • Authorization
    • Implemented roles
  • Chat
    • Create Room
    • Join Room
    • Get Room
    • Get Rooms
    • Get User Rooms
    • Leave Room
    • Delete Room
    • Paginate Rooms
    • Detect number of connected users
    • Find Messages For Room
    • Send Message
    • Infinite scroll messages
    • Add User

License

Nest is MIT licensed.

chat-app's People

Contributors

dependabot[bot] avatar kenandropic avatar

Stargazers

 avatar

Watchers

 avatar

chat-app's Issues

can't create room

[Nest] 18392 - 12/01/2022, 10:57:25 AM ERROR [WsExceptionsHandler] Cannot read properties of undefined (reading 'push')
TypeError: Cannot read properties of undefined (reading 'push')

async createRoom(roomData: RoomDataDto, creator: UserI): Promise {
const user: UserI = {
...creator,
};
delete user.password;
delete user.hashedRT;

const room = {
  ...roomData,
};
room.users.push(user);

return this.repo.save(room);

}

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.