Skip to content

riveur/chat-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat App with Next.js & Socket.io

1. Setup

  • Install the client dependencies:
> cd client && yarn install
  • Install the server dependencies:
> cd server && yarn install

2. Usage

  • To run in developement mode, you can use yarn dev or npm run dev to run the server and the client

INFORMATION:

You may find cors origin issues with the websocket, make sure the origin is using the client url :

// in /server/src/server.ts file

const io = new Server(server, {
    cors: {
        origin: 'http://localhost:3000', // make sure it's match with client
        methods: ['GET', 'POST']
    }
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published