mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
1.2 KiB
1.2 KiB
matrix-react-sdk
This is a react-based SDK for inserting a Matrix chat client into a web page
Getting started with the trivial example
- Install or update
node.js
so that yournpm
is at least at version2.0.0
- Clone the repo:
git clone https://github.com/matrix-org/matrix-react-sdk.git
- Switch to the example directory:
cd matrix-react-sdk/examples/trivial
- Install the prerequisites:
npm install
- Build the example and start a server:
npm start
Now open http://127.0.0.1:8080/ in your browser to see your newly built Matrix client.
Using the example app for development
The above commands will let you start working on the app, and any changes you make to the javascript source files will cause the javascript to be rebuilt automatically, but the same will not apply for the CSS.
To have the CSS bundle also rebuild as you change it:
cd matrix-react-sdk
npm run start:css
Note that you may need to restart the CSS builder if you add a new file. Note
that npm start
builds debug versions of the the javascript and CSS, which are
much larger than the production versions build by the npm run build
commands.