@@ -5,9 +5,13 @@ Vector is a Matrix web client built using the Matrix React SDK (https://github.c
55
66Getting Started
77===============
8- Vector is a modular webapp built with modern ES6 and requires and npm build system to build.
9- Instructions for building are below, but building from source shouldn't be necessary
10- for simple deployments.
8+
9+ The easiest way to test Vector is to just use the hosted copy at https://vector.im/beta .
10+ The develop branch is continuously deployed by Jenkins at https://vector.im/develop for
11+ those who like living dangerously.
12+
13+ To host your own copy of Vector, the quickest bet is to use a pre-built released version
14+ of Vector:
1115
12161 . Download the latest version from https://vector.im/packages/
13171 . Untar the tarball on your web server
@@ -19,10 +23,10 @@ for simple deployments.
1923Building From Source
2024====================
2125
22- If you do wish to build vector from source:
26+ Vector is a modular webapp built with modern ES6 and requires a npm build system to build.
2327
24281 . Install or update ` node.js ` so that your ` npm ` is at least at version ` 2.0.0 `
25- 1 . Clone the repo: ` git clone https://github.com/vector-im/vector-web.git `
29+ 1 . Clone the repo: ` git clone https://github.com/vector-im/vector-web.git `
26301 . Switch to the vector directory: ` cd vector-web `
27311 . Install the prerequisites: ` npm install `
28321 . If you are using the ` develop ` branch of vector, you will probably need to
@@ -49,19 +53,73 @@ You can configure the app by copying `vector/config.sample.json` to
49531 . ` default_hs_url ` is the default home server url.
50541 . ` default_is_url ` is the default identity server url (this is the server used
5155 for verifying third party identifiers like email addresses). If this is blank,
52- registering with an email address or adding an email address to your account
53- will not work.
56+ registering with an email address, adding an email address to your account,
57+ or inviting users via email address will not work. Matrix identity servers are
58+ very simple web services which map third party identifiers (currently only email
59+ addresses) to matrix IDs: see http://matrix.org/docs/spec/identity_service/unstable.html
60+ for more details. Currently the only public matrix identity servers are https://matrix.org
61+ and https://vector.im . In future identity servers will be decentralised.
62+
63+
64+ Running as a Desktop app
65+ ========================
66+
67+ In future we'll do an official distribution of Vector as an desktop app. Meanwhile,
68+ there are a few options:
69+
70+ @asdf : matrix .org points out that you can use nativefier and it just works(tm):
71+
72+ ```
73+ sudo npm install nativefier -g
74+ nativefier https://vector.im/beta/
75+ ```
76+
77+ krisa has a dedicated electron project at https://github.com/krisak/vector-electron-desktop
78+ (although you should swap out the 'vector' folder for the latest vector tarball you want to run)
79+
80+ There's also a (much) older electron distribution at https://github.com/stevenhammerton/vector-desktop
81+
5482
5583Development
5684===========
5785
86+ Before attempting to develop on Vector you ** must** read the developer guide
87+ for ` matrix-react-sdk ` at https://github.com/matrix-org/matrix-react-sdk , which
88+ also defines the design, architecture and style for Vector too.
89+
90+ The idea of Vector is to be a relatively lightweight "skin" of customisations on
91+ top of the underlying ` matrix-react-sdk ` . ` matrix-react-sdk ` provides both the
92+ higher and lower level React components useful for building Matrix communication
93+ apps using React.
94+
95+ After creating a new component you must run ` npm run reskindex ` to regenerate
96+ the ` component-index.js ` for the app (used in future for skinning)
97+
98+ ** However, as of July 2016 this layering abstraction is broken due to rapid
99+ development on Vector forcing ` matrix-react-sdk ` to move fast at the expense of
100+ maintaining a clear abstraction between the two.** Hacking on Vector inevitably
101+ means hacking equally on ` matrix-react-sdk ` , and there are bits of
102+ ` matrix-react-sdk ` behaviour incorrectly residing in the ` vector-web ` project
103+ (e.g. matrix-react-sdk specific CSS), and a bunch of Vector specific behaviour
104+ in the ` matrix-react-sdk ` (grep for Vector). This separation problem will be
105+ solved asap once development on Vector (and thus matrix-react-sdk) has
106+ stabilised. Until then, the two projects should basically be considered as a
107+ single unit. In particular, ` matrix-react-sdk ` issues are currently filed
108+ against ` vector-web ` in github.
109+
110+ Please note that Vector is intended to run correctly without access to the public
111+ internet. So please don't depend on resources (JS libs, CSS, images, fonts)
112+ hosted by external CDNs or servers but instead please package all dependencies
113+ into Vector itself.
114+
115+ Setting up a dev environment
116+ ============================
117+
58118Much of the functionality in Vector is actually in the ` matrix-react-sdk ` and
59119` matrix-js-sdk ` modules. It is possible to set these up in a way that makes it
60120easy to track the ` develop ` branches in git and to make local changes without
61121having to manually rebuild each time.
62122
63- [ Be aware that there may be problems with this process under npm version 3.]
64-
65123First clone and build ` matrix-js-sdk ` :
66124
671251 . ` git clone git@github.com:matrix-org/matrix-js-sdk.git `
@@ -115,6 +173,37 @@ will watch for changes to the files and rebuild automatically.
115173If you add or remove any components from the Vector skin, you will need to rebuild
116174the skin's index by running, `npm run reskindex`.
117175
176+ Filing issues
177+ =============
178+
179+ All issues for Vector-web and Matrix-react-sdk should be filed at
180+ https://github.com/matrix-org/matrix-react-sdk/issues
181+
182+ Triaging issues
183+ ===============
184+
185+ Issues will be triaged by the core team using the following primary set of tags:
186+
187+ priority:
188+ P1: top priority; typically blocks releases.
189+ P2: one below that
190+ P3: non-urgent
191+ P4/P5: bluesky some day, who knows.
192+
193+ bug or feature:
194+ bug severity:
195+ * cosmetic - feature works functionally but UI/UX is broken.
196+ * critical - whole app doesn't work
197+ * major - entire feature doesn't work
198+ * minor - partially broken feature (but still usable)
199+
200+ * release blocker
201+
202+ * ui/ux (think of this as cosmetic)
203+
204+ * network (specific to network conditions)
205+ * platform (platform specific)
206+
118207Enabling encryption
119208===================
120209
@@ -123,10 +212,7 @@ day-to-day use; it is experimental and should be considered only as a
123212proof-of-concept. See https://matrix.org/jira/browse/SPEC-162 for an overview
124213of the current progress.
125214
126- To build a version of vector with support for end-to-end encryption, install
127- the olm module with `npm i https://matrix.org/packages/npm/olm/olm-0.1.0.tgz`
128- before running `npm start`. The olm library will be detected and used if
129- available.
215+ Vector is built with support for end-to-end encryption by default.
130216
131217To enable encryption for a room, type
132218
@@ -142,4 +228,4 @@ Note that historical encrypted messages cannot currently be decoded - history
142228is therefore lost when the page is reloaded.
143229
144230There is currently no visual indication of whether encryption is enabled for a
145- room, or whether a particular message was encrypted .
231+ room.
0 commit comments