@@ -3,34 +3,31 @@ matrix-react-sdk
33
44This is a react-based SDK for inserting a Matrix chat client into a web page
55
6- Getting started with the example
7- ================================
6+ Getting started with the trivial example
7+ ========================================
88
991 . Install or update ` node.js ` so that your ` npm ` is at least at version ` 2.0.0 `
10102 . Clone the repo: ` git clone https://github.com/matrix-org/matrix-react-sdk.git `
11- 3 . Switch to your new checkout: ` cd matrix-react-sdk `
12- 4 . Build the CSS: ` npm install && npm run build:css `
13- 5 . Switch to the example: ` cd example `
14- 6 . Build the javascript & copy the CSS:
15- ` npm install && npm run build && ln -s ../bundle.css ./ `
11+ 3 . Switch to the example directory: ` cd matrix-react-sdk/examples/trivial `
12+ 4 . Install the prerequisites: ` npm install `
13+ 5 . Build the example and start a server: ` npm start `
1614
17- Serve the app from within the ` example ` directory by running `python -m
18- SimpleHTTPServer 8000` and access it at
19- [ http://127.0.0.1:8000 ] ( http://127.0.0.1:8000/ )
15+ Now open http://127.0.0.1:8080/ in your browser to see your newly built
16+ Matrix client.
2017
2118Using the example app for development
2219=====================================
2320
24- To develop using the example app, you can avoid havign to repeat the above
25- steps each time you change something:
21+ The above commands will let you start working on the app, and any changes you
22+ make to the javascript source files will cause the javascript to be rebuilt
23+ automatically, but the same will not apply for the CSS.
2624
27- 1 . Perform all the steps above
28- 2 . In the matrix-react-sdk directory: ` npm run start:css `
29- 3 . Open a new terminal window in the matrix-react-sdk directory:
30- ` cd example; npm start `
25+ To have the CSS bundle also rebuild as you change it:
3126
32- Now, development version of your Javascript and CSS will be rebuilt whenever
33- you change any of the files (although you may need to restart the CSS builder
34- if you add a new file). Note that the debug CSS and Javascript are much, much
35- larger than the production versions.
27+ 1 . ` cd matrix-react-sdk `
28+ 2 . ` npm start:css `
29+
30+ Note that you may need to restart the CSS builder if you add a new file. Note
31+ that ` npm start ` builds debug versions of the the javascript and CSS, which are
32+ much larger than the production versions build by the ` npm run build ` commands.
3633
0 commit comments