Skip to content

Chat website to learn websockets, React Router v7 and Elysia :)

Notifications You must be signed in to change notification settings

alevidals/chat-react-elysia

Repository files navigation

Welcome to ChatReactElysia!

This is a project to learn and practice (at the moment I write this) React Router v7, websockets and Elysia (a Bun framework)

Prerequisites

  • Node > 20 version. You can use fnm to setup a node version manager.
  • Bun to run the project. How to install bun.

Installation

  1. Clone the repository
    git clone https://github.com/alevidals/chat-react-elysia.git
  2. 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
  3. 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

Congrats you can now test the application 🎊🎉

About

Chat website to learn websockets, React Router v7 and Elysia :)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published