commit | 68a9b56de8999c1a1a2e25c11eceba9f36eceae4 | [log] [tgz] |
---|---|---|
author | Misha Krieger-Raynauld <mkriegerraynauld@gmail.com> | Fri Oct 28 19:47:46 2022 -0400 |
committer | Misha Krieger-Raynauld <mkriegerraynauld@gmail.com> | Wed Nov 02 10:19:30 2022 -0400 |
tree | 3e60df933787a75aeb67acf990321aa6470d9b47 | |
parent | 6f9c7ae1d3c08a55feff245730ffb36b05af9a78 [diff] |
Handle remaining important daemon signals Changes: - Create new Jami signal interfaces based on SWIG interface files - Add handlers for signals which are currently used in the old server - Add explanatory comments - Remove unneeded methods from JamiSwig Change-Id: Iecd7284a833238f790b8ee6f1987bb36eee140c8
Jami-web is a web server that starts a Dameon on NodeJS express server and serve a React web client.
The first milestone is to allow user with LDAP credentials to connect to the account using JAMS service and start chatting with their contacts using instant messaging.
Next step will be to implement a video protocol such as WebRTC to allow audio and video calls from the users browser to another Jami contact allowing cross-platform communications.
After building the Jami daemon you can use the following command to start the node js server using the LD_LIBRARY_PATH
Where $PATH_TO_JAMI_PROJECT is the path to the shared library of your Jami daemon
LD_LIBRARY_PATH=$PATH_TO_JAMI_PROJECT/ring-project/install/daemon/lib node
To build the dring.node Javascript interface to talk to the daemon api go to the daemon repo and use ./configure --with-nodejs then execute make -j4 to build the daemon
Create a symbolic link to jamid.node
at the root of jami-web:
ln -s daemon/bin/nodejs/build/Release/jamid.node jamid.node
Then, start the servers:
# Install the package dependencies npm install # Start the client and backend servers npm start
You may also start the servers individually:
npm start --workspace client npm start --workspace server
# Build the client app and the server. The resulting files are available in `client/dist` and `server/dist` respectively npm run build # Preview the production build locally npm run start:prod
You may run the web server in a Docker container. This will automatically build the daemon and do the necessary linking.
cd daemon docker build --build-arg config_args="--with-nodejs" -t jami-daemon . cd ..
docker build --target development --tag jami-web . docker run -it \ -p 3001:3001 \ -p 3000:3000 \ -p 5000:5000 \ --volume $(pwd)/client/src:/web-client/client/src \ --volume $(pwd)/server/src:/web-client/server/src \ jami-web
This will use a Docker Volume to enable auto-refresh when you change a file.
# First build the daemon if necessary docker-compose build jami-daemon # Then build the project and start the container docker-compose build docker-compose up
uncomment the line // import config from "./sentry-server.config.json" assert { type: "json" };
in ./sentry.js
uncomment the line // import config from "../sentry-client.config.json"
and the init configSentry.init(...
in ./client/index.js
uncomment the lines // import { sentrySetUp } from './sentry.js'
and sentrySetUp(app)
in ./app.ts
add sentry-client.config.json
file in client
and sentry-server.config.json
(ask them to an admin) in your project root
sh ./cypress-test.sh