Update ricochet-js
This commit is contained in:
parent
2fa7792d77
commit
7684839e90
6 changed files with 434 additions and 210 deletions
|
@ -1,10 +1,10 @@
|
||||||
##### Front ####
|
##### Front ####
|
||||||
|
|
||||||
# API URL
|
# API URL
|
||||||
VITE_API_ENDPOINT=http://localhost:3001
|
VITE_API_ENDPOINT=http://localhost:4050
|
||||||
|
|
||||||
# Socket configuration
|
# Socket configuration
|
||||||
VITE_SOCKET_URL=http://localhost:3001
|
VITE_SOCKET_URL=http://localhost:4051
|
||||||
VITE_SOCKET_PATH=/socket.io
|
VITE_SOCKET_PATH=/socket.io
|
||||||
|
|
||||||
# Set to 1 to remove Welcome dialog
|
# Set to 1 to remove Welcome dialog
|
||||||
|
|
3
.github/workflows/cypress.yml
vendored
3
.github/workflows/cypress.yml
vendored
|
@ -27,7 +27,8 @@ jobs:
|
||||||
env:
|
env:
|
||||||
VITE_NO_WELCOME: 1
|
VITE_NO_WELCOME: 1
|
||||||
VITE_CI: 1
|
VITE_CI: 1
|
||||||
VITE_SOCKET_URL: https://ricochetjs.herokuapp.com/
|
VITE_SOCKET_URL: https://public.jeremiez.net/
|
||||||
|
VITE_SOCKET_PATH: /wamp/socket.io
|
||||||
VITE_API_ENDPOINT: https://ricochetjs.herokuapp.com/
|
VITE_API_ENDPOINT: https://ricochetjs.herokuapp.com/
|
||||||
VITE_RICOCHET_SITEID: airboardgame
|
VITE_RICOCHET_SITEID: airboardgame
|
||||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
||||||
|
|
19
README.md
19
README.md
|
@ -113,7 +113,7 @@ cp site.dist.json site.json
|
||||||
cp .env.dist .env
|
cp .env.dist .env
|
||||||
```
|
```
|
||||||
|
|
||||||
Generate an encrytion key:
|
Generate an encryption key:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npx ricochet --generate-key
|
npx ricochet --generate-key
|
||||||
|
@ -143,9 +143,19 @@ code executed by ricochetjs in another terminal:
|
||||||
npm run watch
|
npm run watch
|
||||||
```
|
```
|
||||||
|
|
||||||
|
you also need an instance of `wire.io` so in another terminal, execute:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# Need npm >= v7
|
||||||
|
PORT=4051 npx wire.io
|
||||||
|
```
|
||||||
|
|
||||||
|
See [wire.io](https://github.com/jrmi/wire.io) documentation for more information
|
||||||
|
on how to configure it.
|
||||||
|
|
||||||
### Client
|
### Client
|
||||||
|
|
||||||
in another terminal, go back to project root and execute:
|
In another terminal, go back to project root and execute:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cd <project_root>/
|
cd <project_root>/
|
||||||
|
@ -162,8 +172,9 @@ Then you can start the client:
|
||||||
npm start
|
npm start
|
||||||
```
|
```
|
||||||
|
|
||||||
Now you should have three terminals:
|
Now you should have four terminals:
|
||||||
|
|
||||||
* the one with ricochetjs server instance. Backend logs can be found here
|
* the one with ricochetjs server instance. Backend logs can be found here
|
||||||
* one terminal with auto build on change for backend files
|
* one terminal with auto build on change for backend files
|
||||||
* one with React frontend server
|
* another with `wire.io` server running
|
||||||
|
* and a last one with React frontend server
|
||||||
|
|
|
@ -3,7 +3,7 @@ RICOCHET_SECRET_KEY=
|
||||||
|
|
||||||
# --- Ricochet configuration start here
|
# --- Ricochet configuration start here
|
||||||
|
|
||||||
SERVER_PORT=3001
|
SERVER_PORT=4050
|
||||||
SERVER_HOST=localhost
|
SERVER_HOST=localhost
|
||||||
|
|
||||||
# memory, disk or s3 storage are available
|
# memory, disk or s3 storage are available
|
||||||
|
|
612
backend/package-lock.json
generated
612
backend/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -18,6 +18,7 @@
|
||||||
"clean-webpack-plugin": "^3.0.0",
|
"clean-webpack-plugin": "^3.0.0",
|
||||||
"copy-webpack-plugin": "^7.0.0",
|
"copy-webpack-plugin": "^7.0.0",
|
||||||
"dotenv-webpack": "^7.0.2",
|
"dotenv-webpack": "^7.0.2",
|
||||||
|
"ricochet-js": "^0.10.0",
|
||||||
"transform-loader": "^0.2.4",
|
"transform-loader": "^0.2.4",
|
||||||
"webpack": "^5.38.1",
|
"webpack": "^5.38.1",
|
||||||
"webpack-cli": "^4.7.0",
|
"webpack-cli": "^4.7.0",
|
||||||
|
@ -27,7 +28,6 @@
|
||||||
"btoa": "^1.2.1",
|
"btoa": "^1.2.1",
|
||||||
"dotenv": "^8.2.0",
|
"dotenv": "^8.2.0",
|
||||||
"node-fetch": "^2.6.1",
|
"node-fetch": "^2.6.1",
|
||||||
"pino-tiny": "^1.0.0",
|
"pino-tiny": "^1.0.0"
|
||||||
"ricochet-js": "^0.9.1"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue