pinafore/README.md

43 lines
780 B
Markdown
Raw Normal View History

2018-01-19 06:29:12 +01:00
# Pinafore
2018-01-07 00:51:25 +01:00
2018-02-18 23:38:10 +01:00
An alternative web client for [Mastodon](https://joinmastodon.org]).
## Building
npm install
npm run build
PORT=4002 npm start
## Development
npm run dev
## Testing in development mode
In separate terminals:
1\. Run a Mastodon dev server (note this destroys the `mastodon_development` database and inserts canned data):
npm run run-mastodon
2\. Run a Pinafore dev server:
npm run dev
2018-02-20 03:24:22 +01:00
3\. Run a debuggable TestCafé instance:
2018-02-18 23:38:10 +01:00
2018-02-20 03:24:22 +01:00
npx testcafe --hostname localhost --skip-js-errors --debug-mode chrome tests/spec
2018-02-18 23:38:10 +01:00
If you want to export the current data in the Mastodon instance as canned data, so that it can be loaded later:
npm run backup-mastodon-data
## Testing
Lint:
npm run lint
2018-02-20 03:24:22 +01:00
Run integration tests:
2018-02-18 23:38:10 +01:00
npm test