You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,8 @@ Are you tired of sending code snippets back and forth, struggling to debug and c
17
17
### Prerequisites
18
18
19
19
- Node.js (v20.11.1)
20
-
- npm (v10.2.4) or yarn
20
+
- npm (10.2.4)
21
+
- pm2 (5.3.1) : `npm i -g pm2`
21
22
22
23
I have used nvm (v0.39.7) to manage my node versions. View nvm official [documentation](https://github.com/nvm-sh/nvm) to install it.
23
24
@@ -35,9 +36,9 @@ I have used nvm (v0.39.7) to manage my node versions. View nvm official [documen
35
36
This project is not currently live on any server. But to use the demo version, follow the steps below:
36
37
37
38
- Clone this repository and cd into it
38
-
- Run `yarn` to install the dependencies
39
-
- To start the react app client run `yarn start` in one terminal
40
-
- To start the server run `yarn server:dev` in another terminal
39
+
- Run `npm install` to install the dependencies
40
+
- To start the react app client run `npm start` in one terminal
41
+
- To start the server run `npm server:dev` or `pm2 start server.js` in another terminal
41
42
- Go to `http://localhost:3000` to view the app
42
43
- Create a room by clicking on the `create new room` button and put a username of your choice
43
44
- Copy the room id by clicking on the `Copy ROOM ID` button
@@ -46,6 +47,8 @@ This project is not currently live on any server. But to use the demo version, f
46
47
47
48
Now both your editor will be synced and you can see the changes in real time. Try opening the same room in multiple browsers/browsers-windows and see the changes.
48
49
50
+
**Note:** To stop your server (only if you used pm2) run `pm2 stop server.js` in the terminal
0 commit comments