Skip to content

datacite/lupo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2cc956e · May 17, 2023
Apr 10, 2023
May 16, 2023
Sep 21, 2022
May 16, 2023
Mar 31, 2023
Mar 31, 2023
Dec 15, 2018
May 9, 2023
Mar 30, 2018
Feb 16, 2022
Mar 11, 2019
Nov 22, 2020
Jan 15, 2021
Apr 23, 2018
Mar 28, 2020
Nov 21, 2020
Feb 10, 2021
Nov 26, 2020
Apr 22, 2022
Mar 21, 2023
Mar 21, 2023
Aug 12, 2017
Nov 5, 2021
Nov 22, 2020
May 9, 2018
Nov 22, 2020
Nov 5, 2021
Apr 10, 2023
May 5, 2023

Repository files navigation

DataCite REST API

Identifier Release Maintainability Test Coverage

Rails API application for managing DataCite providers, clients, prefixes and DOIs. The API usesthe JSONAPI specification.

Installation

Using Docker.

docker run -p 8065:80 datacite/lupo

or

docker-compose up

If you want to build the docker image locally (instead of pulling it from docker hub) and use docker compose for development you can use

docker-compose -f docker-compose.yml -f docker-compose.local.yml

You can now point your browser to http://localhost:8065 and use the application. Some API endpoints require authentication.

Development

For basic setup one can use the following:

bundle exec rake db:create
bundle exec rake db:schema:load
bundle exec rake db:seed:development:base

All other seed options can be found using rake --tasks

We use Rspec for testing:

bundle exec rspec

Note when using a fresh test database you will need to instantiate the test db with:

bundle exec rake db:create RAILS_ENV=test

Follow along via Github Issues.

Note on Patches/Pull Requests

  • Fork the project
  • Write tests for your new feature or a test that reproduces a bug
  • Implement your feature or make a bug fix
  • Do not mess with Rakefile, version or history
  • Commit, push and make a pull request. Bonus points for topical branches.

License

Lupo is released under the MIT License.