First you need to clone this repository on your machine.
git clone email@example.com:yannisbarlas/editoria.git
git clone https://gitlab.coko.foundation/yannisbarlas/editoria.git
Once you have, navigate to the project's root directory.
This application is being developed with node 6 in mind.
If you use nvm for managing different node versions, the project includes an
.nvmrc file that you can take advantage of.
Install the latest version of the
pubsweet command line tool.
npm install --global pubsweet
Install the project's dependencies.
Create a database.
pubsweet setupdb ./
If you want to create a database for a development environment, simply pass the
--dev option to the above command.
pubsweet setupdb ./ --dev
Follow the instructions, create the administrator user and name your book.
Once that is done, you can run the app like so:
Or if you want the development environment:
pubsweet run --dev
Log in as an administrator, and click on the "Teams" link in the navigation bar.
Create 3 teams:
- Name the first "Production Editor", give it a type of "Production Editor all" and choose your book from the Collection dropdown.
- Name the second "Copy Editors", give it a type of "Copy Editor update" and choose your book from the Collection dropdown.
- Name the third "Authors", give it a type of "Author update" and choose your book from the Collection dropdown.
You can now assign different users to different roles.
If a user is a production editor, the user can then also edit user roles for all other users.