This is a project to learn and practice (at the moment I write this) React Router v7, websockets and Elysia (a Bun framework)
- Node > 20 version. You can use fnm to setup a node version manager.
- Bun to run the project. How to install bun.
- Clone the repository
git clone https://github.com/alevidals/chat-react-elysia.git
- Install client and server dependencies
# go inside the project folder cd chat-react-elysia # install client dependencies bun i # install server dependencies cd server bun i
- Start both projects
# At this moment you will need 3 terminal instances (one for the server, and the others for clients) # Let's start the server project cd server # if you are not on the server directory bun dev # Let's start the clients projects # To simulate that there are different logged users I have simulate this setting up a environment variable at the dev script bun dev-user-1 # this will start the project as the user 1 bun dev-user-2 # this will start the project as the user 2