Skip to content
Snippets Groups Projects
README.md 2.13 KiB
Newer Older
Alf Eaton's avatar
Alf Eaton committed
Note: xpub is still _very_ new. This repository contains an initial set of components but is not yet ready for use.

## Contents

Alf Eaton's avatar
Alf Eaton committed
### PubSweet components

* `component-app`: a PubSweet component that provides an app container with nav bar and journal provider.
Alf Eaton's avatar
Alf Eaton committed
* `component-authentication`: a PubSweet component that provides authentication-related client pages.
Alf Eaton's avatar
Alf Eaton committed
* `component-dashboard`: a PubSweet component that provides a Dashboard page.
* `component-manuscript`: a PubSweet component that provides a Manuscript page.
* `component-review`: a PubSweet component that provides a Review page.
* `component-submit`: a PubSweet component that provides a Submit page.
Alf Eaton's avatar
Alf Eaton committed

## PubSweet applications

* `xpub-collabra`: a PubSweet application that provides configuration and routing for a journal.

## xpub packages

* `xpub-edit`: WYSIWYG editors for use in xpub forms
Alf Eaton's avatar
Alf Eaton committed
* `xpub-fonts`: fonts for use in xpub applications
* `xpub-journal`: a helper that provides journal config to components
Alf Eaton's avatar
Alf Eaton committed
* `xpub-selectors`: some useful redux selectors
* `xpub-styleguide`: components for use in react-styleguidist
* `xpub-ui`: a library of user interface elements for use in PubSweet components
* `xpub-upload`: a helper function for file uploading
Alf Eaton's avatar
Alf Eaton committed

Alf Eaton's avatar
Alf Eaton committed
Run `yarn config set workspaces-experimental true` to enable yarn workspaces.
Alf Eaton's avatar
Alf Eaton committed
In the root directory, run `yarn` to install all the dependencies.
Alf Eaton's avatar
Alf Eaton committed
## Configuration
Alf Eaton's avatar
Alf Eaton committed
To enable manuscript conversion via INK, add the following values to `packages/xpub-collabra/config/local.json` (ask in [the xpub channel](https://mattermost.coko.foundation/coko/channels/xpub) if you need an account):

```json
{
  "pubsweet-server": {
    "secret": "__EDIT_THIS__"
  },
  "pubsweet-component-ink-backend": {
    "inkEndpoint": "__EDIT_THIS__",
    "email": "__EDIT_THIS__",
    "password": "__EDIT_THIS__"
  }
}
Alf Eaton's avatar
Alf Eaton committed
## Running the app

1. `cd packages/xpub-collabra`
Alf Eaton's avatar
Alf Eaton committed
1. The first time you run the app, initialise the database with `yarn run setupdb` (press Enter when asked for a collection title, to skip that step).
1. `yarn start`
Alf Eaton's avatar
Alf Eaton committed

## Community

Join [the Mattermost channel](https://mattermost.coko.foundation/coko/channels/xpub) for discussion of xpub.