Skip to content

CenterForOpenScience/angular-osf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,697 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Science Framework Angular Project

This is the front-end angular repository for the Open Science Framework (OSF).

Quickstart (Docker)

docker compose up -d --build
# open http://localhost:4200

note Depending on local system architecture the build and launch of the angular server can take up to 60 seconds once the docker build finishes.

Index

First steps

Recommended

Optional

Testing the project

The project uses Vitest through Angular's unit test builder (ng test). A "counter" script displays local run stats after coverage runs.

npm run test               # single test run (no watch)
npm run test:one "src/path/to/file.spec.ts"  # run one spec file
npm run test:watch         # watch mode
npm run test:coverage      # coverage reports

Coverage thresholds are configured in vitest.config.ts (test.coverage.thresholds). To validate threshold updates after improving coverage:

npm run test:check-coverage-thresholds

Volta

OSF uses volta to manage node and npm versions inside of the repository Install Volta from volta and it will automatically pin Node/npm per the repo toolchain.

Configuration

OSF uses an assets/config/config.json file for any 3rd-party tokens. This file is not committed to the repo.

There is a assets/config/template.json file that can be copied to assets/config/config.json to store any 3rd-party tokens locally.

About

Angular front-end for the Open Science Framework

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors