{"id":22147288,"url":"https://github.com/centerforopenscience/ember-osf-preprints","last_synced_at":"2025-09-06T02:48:46.647Z","repository":{"id":9946078,"uuid":"63790282","full_name":"CenterForOpenScience/ember-osf-preprints","owner":"CenterForOpenScience","description":"OSF Preprints: The open preprint repository network","archived":false,"fork":false,"pushed_at":"2024-03-01T22:15:19.000Z","size":22825,"stargazers_count":41,"open_issues_count":3,"forks_count":39,"subscribers_count":12,"default_branch":"develop","last_synced_at":"2025-03-21T22:39:15.146Z","etag":null,"topics":["ember","osf","preprints","science"],"latest_commit_sha":null,"homepage":"https://osf.io/preprints/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CenterForOpenScience.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-20T14:56:36.000Z","updated_at":"2024-08-12T19:51:50.000Z","dependencies_parsed_at":"2023-02-18T10:46:25.799Z","dependency_job_id":"7385e119-2e45-4a6b-92ad-3abecd5170ae","html_url":"https://github.com/CenterForOpenScience/ember-osf-preprints","commit_stats":{"total_commits":3098,"total_committers":52,"mean_commits":59.57692307692308,"dds":0.7575855390574564,"last_synced_commit":"cdd74341bb0617872d3e9aaa193f22d2654a205f"},"previous_names":[],"tags_count":197,"template":false,"template_full_name":null,"purl":"pkg:github/CenterForOpenScience/ember-osf-preprints","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CenterForOpenScience%2Fember-osf-preprints","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CenterForOpenScience%2Fember-osf-preprints/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CenterForOpenScience%2Fember-osf-preprints/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CenterForOpenScience%2Fember-osf-preprints/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CenterForOpenScience","download_url":"https://codeload.github.com/CenterForOpenScience/ember-osf-preprints/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CenterForOpenScience%2Fember-osf-preprints/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262693290,"owners_count":23349710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ember","osf","preprints","science"],"created_at":"2024-12-01T23:16:01.905Z","updated_at":"2025-06-30T01:32:46.312Z","avatar_url":"https://github.com/CenterForOpenScience.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ember-osf-preprints\n\n`master` Build Status: ![Master Build Status](https://github.com/CenterForOpenScience/ember-osf-preprints/workflows/CI/badge.svg?branch=master)\n\n`develop` Build Status: ![Develop Build Status](https://github.com/CenterForOpenScience/ember-osf-preprints/workflows/CI/badge.svg?branch=develop)\n\n[![Coverage Status](https://coveralls.io/repos/github/CenterForOpenScience/ember-osf-preprints/badge.svg?branch=develop)](https://coveralls.io/github/CenterForOpenScience/ember-osf-preprints?branch=develop)\n\nThis is the codebase for OSF preprints.\nThis guide will help you get started if you're interested.\n\n## Prerequisites\n\nYou will need the following things properly installed on your computer.\n\n-   [Git](http://git-scm.com/)\n-   [Node.js](http://nodejs.org/) (preferably via [nvm](https://github.com/creationix/nvm#install-script))\n-   [Yarn](https://yarnpkg.com/)\n-   [Ember CLI](http://ember-cli.com/)\n\n## Installation\n\n-   `git clone` this repository\n    -   To pull in local preprint provider assets as well, use `git clone --recursive` instead (assuming you are using git \u003e= 1.6.5).\n-   `yarn install --frozen-lockfile`\n\n## Preprint Provider Assets\n\nIf you will be using local preprint provider assets (rather than the CDN):\n\n1. If you did not clone the repository using `--recursive`, run: `git submodule update --init --recursive`\n2. Set the PROVIDER_ASSETS_URL environment variable to 'local'\n\n### Updating Assets\n\n-   To refresh your local assets, run: `git submodule update`\n-   To update the assets submodule to the latest assets, run: `npm run update-assets`\n-   To update to the latest assets and create a hotfix, run: `npm run updates-assets-hotfix`\n\n## Running / Development\n\nFor local development, this is designed to run alongside (and from within) the flask application for osf.io.\n\n1. Check out this OSF feature branch: https://github.com/CenterForOpenScience/osf.io/tree/feature/ember-preprints\n2. Start your Ember server: `ember serve`\n3. Copy [these lines](https://github.com/centerforopenscience/osf.io/blob/a98615b68a5cf620bc76c550808dd78ea3a305ec/website/settings/local-dist.py#L18-L22)\n   to your `website/settings/local.py` file. Uncomment `'/preprints/': 'http://localhost:4200',` and restart your flask app.\n4. Visit your app at http://localhost:5000/preprints/\n\n### Provider Domains\n\n1. Start the API server\n1. Run `sudo ./scripts/add-domains.js`. This will add the domains to your `/etc/hosts`. Use `--dry` for a dry run.\n1. Visit your app at one of the provider domains with `https://local.\u003cdomain\u003e:4200` (e.g. `http://local.socarxiv.org:4200`)\n\nIf you encounter problems, make sure that your version of ember-osf is up to date. If login fails, try logging in from\nany other OSF page, then returning to the preprints app.\n\n### Generating test data on the OSF\n\nThere are a few scripts to run to populate your local preprint providers list, and help generate some \"fake\" preprints locally so you can begin testing using the OSF API.\n\n-   Populate the OSF's PreprintProvider model with data:\n\n`python -m scripts.populate_preprint_providers`\n\n-   Populate the OSF's Subject model with data:\n\n`python -m scripts.update_taxonomies`\n\n-   Create \"fake\" preprints using some additional arguments to the `create_fakes` script:\n\n`python -m scripts.create_fakes -u user@email.io --nprojects 2 --preprint True --preprintprovider osf,psyarxiv`\n\n_notes_: You can enter as many providers as you like, separated by commas. Also, this script does not currently create actual fake files, only fake file metadata; the file itself won't render in a preprint view, but you can still request its information from the API.\n\n### Code Generators\n\nMake use of the many generators for code, try `ember help generate` for more details\n\n### Running Tests\n\nYou can run tests either with ember installed on your machine or by using [Docker](https://docs.docker.com/engine/getstarted/step_one/)\n\n#### On your local machine\n\n-   `ember test`\n-   `ember test --server`\n\n#### With Docker\n\n-   `docker build --tag preprints .`\n-   `docker run preprints`\n\n### Building\n\n-   `ember build` (development)\n-   `ember build --environment production` (production)\n\n## Further Reading / Useful Links\n\n-   [Requirements and road map for this service](https://docs.google.com/spreadsheets/d/1SocElbBjc_Nhme4-SJv2_zytBd1ys8R5aZDb3POe94c/edit#gid=1340026270)\n-   [ember.js](http://emberjs.com/)\n-   [ember-cli](http://ember-cli.com/)\n-   Development Browser Extensions\n    -   [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi)\n    -   [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcenterforopenscience%2Fember-osf-preprints","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcenterforopenscience%2Fember-osf-preprints","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcenterforopenscience%2Fember-osf-preprints/lists"}