项目作者: CenterForOpenScience

项目描述 :
OSF Registries: The open registries network
高级语言: JavaScript
项目地址: git://github.com/CenterForOpenScience/ember-osf-registries.git
创建时间: 2017-01-03T19:17:02Z
项目社区:https://github.com/CenterForOpenScience/ember-osf-registries

开源协议:Apache License 2.0

下载


ember-osf-registries

master Build Status: Build Status

develop Build Status: Build Status

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

Prerequisites

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

Installation

  • git clone this repository
  • yarn --frozen-lockfile
  • bower install

Running / Development

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

  1. Start your Ember server: ember serve
  2. Add this to to your website/settings/local.py file:
    1. 'registries': {
    2. 'url': '/registries/',
    3. 'server': 'http://localhost:4200',
    4. 'path': '../ember-osf-registries/dist/'
    5. }
  3. Visit your app at http://localhost:5000/registries/

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

This interacts only with the SHARE data available. Unless SHARE needs to be configured locally, pointing config/environment.js to one of SHARE servers (such as https://share.osf.io/) should populate the app with data.

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 registries .
  • docker run registries

Building

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