Skip to content

This code supports the frontend operations of the FAANG data portal

License

Notifications You must be signed in to change notification settings

FAANG/dcc-portal-frontend

Repository files navigation

Build Status Coverage Status License

FAANG portal-frontend

This project was generated with Angular CLI version 6.1.4.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Design features

App has 7 main routes (that you can find inside app-routing.module.ts):

  1. Home route (home component)
  2. Organisms route (organism component)
  3. Specimens route (specimen component)
  4. Datasets route (dataset component)
  5. Files route (file component)
  6. Search route (search component)
  7. Help route (help component)

Inside folder of each component you can find detail component (file-detail component for example).

Also project contains pipes, services and shared folders for pipes, services and shared components respectively. Each component fetches data from the server only upon creation and then all basic functionality (sorting, filtering, etc...) goes on using pipes sort.pipe.ts and filter.pipe.ts for sorting and filtering respectively.

Future plans

  1. Add comprehensive test suite
  2. Pre-render application on the fly from the server using Angular Universal
  3. Add offline capabilities with Service Workers

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

Funding

The FAANG Data Coordination Centre has received funding from the European Union’s Horizon 2020 research and innovation program under Grant Agreement Nos. 815668, 817923 and 817998, and also form the Biotechnology and Biological Sciences Research Council under Grant Agreement No. BB/N019563/1.