Easy get the app running steps (#21)

Easy get the app running steps:

 1. Install
 2. Edit the config to point at your homeserver
 3. Run the app!
 
---

This is made possible thanks to the change we made in https://github.com/matrix-org/matrix-public-archive/pull/20#discussion_r897567619 to start using a scoped custom version of `hydrogen-view-sdk`. This includes all of the scratch changes necessary to get this project running which makes the `npm install` just work out of the box without all of the `npm link` hassle.
This commit is contained in:
Eric Eastwood 2022-06-15 01:21:10 -05:00 committed by GitHub
parent cda2d98df0
commit 3e85ae3b60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 5 deletions

View File

@ -35,6 +35,18 @@ the maintenance burden of supporting more event types in Hydrogen.
### Get the app running ### Get the app running
```sh
$ npm install
# Edit config/config.user-overrides.json so that `matrixServerUrl` points to your homeserver
# and has `matrixAccessToken` defined
$ cp config/config.default.json config/config.user-overrides.json
$ npm run start-dev
```
## Development
```sh ```sh
# We need to use a draft branch of Hydrogen to get the custom changes needed for # We need to use a draft branch of Hydrogen to get the custom changes needed for
# `matrix-public-archive` to run. Hopefully soon, we can get all of the custom # `matrix-public-archive` to run. Hopefully soon, we can get all of the custom
@ -52,15 +64,16 @@ $ git clone git@github.com:matrix-org/matrix-public-archive.git
$ cd matrix-public-archive $ cd matrix-public-archive
$ npm install $ npm install
$ npm link hydrogen-view-sdk $ npm link hydrogen-view-sdk
# If you just want to run the tests,you can skip to the "Running tests" section at this point # If you just want to run the tests, you can skip to the "Running tests" section at this point
#
# Edit config/config.user-overrides.json so that `matrixServerUrl` points to your homeserver
# and has `matrixAccessToken` defined
$ cp config/config.default.json config/config.user-overrides.json $ cp config/config.default.json config/config.user-overrides.json
# Edit config/config.user-overrides.json so that it points to your homeserver
# and has an access token
# Now we can finally start the app # Now we can finally start the app
$ npm start-dev $ npm run start-dev
``` ```
## Running tests ### Running tests
See the [testing readme](./test/README.md). See the [testing readme](./test/README.md).