Skip to content

ror-community/ror-app

Repository files navigation

ror-app

Deploy Master

Frontend application the provides the search UI on top of the ROR API used in https://ror.org/search .

Local setup

Prerequisites

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

Installation

  • git clone <repository-url> this repository
  • cd ror-app
  • yarn install

Running / Development

Code Generators

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

Running Tests

  • ember test
  • ember test --server

Linting

  • npm run lint:hbs
  • npm run lint:js
  • npm run lint:js -- --fix

Building

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

Development

  • All development should be done locally in feature branches.
  • When you have changes ready to push to dev, open a pull request against the dev branch.
  • Do not push changes directly to dev or master.

Deployment

Deployment is handled by Github actions

  • Deploy Dev action deploys to dev.ror.org on push/merge to dev branch
  • Deploy Master action deploys to ror.org on push/merge to master branch

Note

Core CSS hugo-ror.css is shared between ror-app and ror-site and is hosted on ror-site, https://ror.org. SCSS file is located at https://github.com/ror-community/ror-site/blob/master/themes/hugo-ror/assets/sass/partials/_hugo-ror.scss.

The BaseUrl environment variable is used to point to hugo-ror.css for the corresponding environment (dev, staging, prod) in the head of index.html. See above for local dev instructions.

Further Reading / Useful Links