All Projects → CenterForOpenScience → ember-osf-preprints

CenterForOpenScience / ember-osf-preprints

Licence: Apache-2.0 license
OSF Preprints: The open preprint repository network

Programming Languages

javascript
184084 projects - #8 most used programming language
Handlebars
879 projects
SCSS
7915 projects

Projects that are alternatives of or similar to ember-osf-preprints

ember-osf
Ember Addon for interacting with the Open Science Framework
Stars: ✭ 14 (-63.16%)
Mutual labels:  ember, science, osf
Ember Osf Web
Ember front-end for the Open Science Framework
Stars: ✭ 102 (+168.42%)
Mutual labels:  ember, science
Ember Native Dom Helpers
Test helpers for your integration tests that fire native events
Stars: ✭ 187 (+392.11%)
Mutual labels:  ember
Ember Lifeline
An Ember addon for managing the lifecyle of asynchronous behavior in your objects
Stars: ✭ 241 (+534.21%)
Mutual labels:  ember
Ember Template Lint
Linter for Ember or Handlebars templates
Stars: ✭ 214 (+463.16%)
Mutual labels:  ember
Ember Power Calendar
Powerful and customizable calendar component for Ember
Stars: ✭ 200 (+426.32%)
Mutual labels:  ember
Ember Cli Document Title
Adding document title behaviour to your ember app
Stars: ✭ 220 (+478.95%)
Mutual labels:  ember
Ember Page Title
Page title management for Ember.js Apps
Stars: ✭ 177 (+365.79%)
Mutual labels:  ember
Storybook
📓 The UI component explorer. Develop, document, & test React, Vue, Angular, Web Components, Ember, Svelte & more!
Stars: ✭ 67,445 (+177386.84%)
Mutual labels:  ember
Ember Models Table
Table with pagination, sorting, filtering and much more
Stars: ✭ 212 (+457.89%)
Mutual labels:  ember
Eslint Plugin Ember
An ESlint plugin that provides set of rules for Ember Applications based on commonly known good practices.
Stars: ✭ 240 (+531.58%)
Mutual labels:  ember
Ember Tooltips
Easy and extendible tooltips for Ember components - http://sir-dunxalot.github.io/ember-tooltips/
Stars: ✭ 205 (+439.47%)
Mutual labels:  ember
Ember Leaflet
🔥 🍃 Easy and declarative mapping for ember
Stars: ✭ 201 (+428.95%)
Mutual labels:  ember
Ember Font Awesome
ember-cli addon for using Font Awesome icons in Ember apps
Stars: ✭ 225 (+492.11%)
Mutual labels:  ember
Library App
Detailed Ember.js Octane v3.21 tutorial for absolute beginners. https://yoember.com
Stars: ✭ 189 (+397.37%)
Mutual labels:  ember
Ember Graphql Adapter
GraphQL adapter for Ember Data
Stars: ✭ 244 (+542.11%)
Mutual labels:  ember
Scroll Js
Light cross-browser scroller that uses native javascript
Stars: ✭ 179 (+371.05%)
Mutual labels:  ember
Emberx Select
Select component for Ember based on the native html select element.
Stars: ✭ 202 (+431.58%)
Mutual labels:  ember
Flexi
Just a layout framework. Design for cross-platform with ease.
Stars: ✭ 220 (+478.95%)
Mutual labels:  ember
spinmob
Rapid and flexible acquisition, analysis, fitting, and plotting in Python. Designed for scientific laboratories.
Stars: ✭ 34 (-10.53%)
Mutual labels:  science

ember-osf-preprints

master Build Status: Master Build Status

develop Build Status: Develop Build Status

Coverage Status

This is the codebase for OSF preprints. This guide will help you get started if you're interested.

Prerequisites

You will need the following things properly installed on your computer.

Installation

  • git clone this repository
    • To pull in local preprint provider assets as well, use git clone --recursive instead (assuming you are using git >= 1.6.5).
  • yarn install --frozen-lockfile
  • bower install

Preprint Provider Assets

If you will be using local preprint provider assets (rather than the CDN):

  1. If you did not clone the repository using --recursive, run: git submodule update --init --recursive
  2. Set the PROVIDER_ASSETS_URL environment variable to 'local'

Updating Assets

  • To refresh your local assets, run: git submodule update
  • To update the assets submodule to the latest assets, run: npm run update-assets
  • To update to the latest assets and create a hotfix, run: npm run updates-assets-hotfix

Running / Development

For local development, this is designed to run alongside (and from within) the flask application for osf.io.

  1. Check out this OSF feature branch: https://github.com/CenterForOpenScience/osf.io/tree/feature/ember-preprints
  2. Start your Ember server: ember serve
  3. Copy these lines to your website/settings/local.py file. Uncomment '/preprints/': 'http://localhost:4200', and restart your flask app.
  4. Visit your app at http://localhost:5000/preprints/

Provider Domains

  1. Start the API server
  2. Run sudo ./scripts/add-domains.js. This will add the domains to your /etc/hosts. Use --dry for a dry run.
  3. Visit your app at one of the provider domains with https://local.<domain>:4200 (e.g. http://local.socarxiv.org:4200)

If you encounter problems, make sure that your version of ember-osf is up to date. If login fails, try logging in from any other OSF page, then returning to the preprints app.

Generating test data on the OSF

There 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.

  • Populate the OSF's PreprintProvider model with data:

python -m scripts.populate_preprint_providers

  • Populate the OSF's Subject model with data:

python -m scripts.update_taxonomies

  • Create "fake" preprints using some additional arguments to the create_fakes script:

python -m scripts.create_fakes -u [email protected] --nprojects 2 --preprint True --preprintprovider osf,psyarxiv

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.

Code Generators

Make use of the many generators for code, try ember help generate for more details

Running Tests

You can run tests either with ember installed on your machine or by using Docker

On your local machine

  • ember test
  • ember test --server

With Docker

  • docker build --tag preprints .
  • docker run preprints

Building

  • ember build (development)
  • ember build --environment production (production)

Further Reading / Useful Links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].