Skip to content

elifesciences/enhanced-preprints-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enhanced Preprints

Repository for the Enhanced Preprints API server.

Local development

Local dependencies

You will find it helpful to install local dependencies, by running yarn, so that local type-checking and linting tools work.

Development build - docker-compose up or make start-dev

This will build and run the application on port 8080 and will rebuild any ts files when they change.

Testing

To perform the unit tests:

yarn test

to run in watch mode add -w to the previous command.

To perform the integration tests:

yarn test:integration

and to lint:

yarn lint

Clone cluster databases

To clone one of the cluster databases (as long as you have k8s access) run scripts/clone-cluster-db.sh to make a dump of the database.

Use -o or --output (defaults to ./database.dump) to change the name of the dump and -r or --remote to change which remote to use (only accepts staging or prod and defaults to staging).

Start the application with a docker compose up --wait.

When the containers have all started run scripts/use-cluster-db.sh, use -i or --input (defaults to ./database.dump) to change the name of the dump to be used.

To see the options on either script run them with -h

To check that the db has been imported correctly go to localhost:8081 and click through to /epp folder.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages