Skip to content

luomus/laji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15,589 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laji.fi frontend

This is the frontend for laji.fi. The API and it's documentation can be found at api.laji.fi.

Follow guidelines set in wiki for developing.

Development server

Stack

  • Node.js
  • Angular

Installation

Make sure to use the correct node version marked in .nvmrc. You can use for example volta or nvm.

Install the dependencies:

npm ci

API proxy configuration

You must configure the API base and an access token with .env file:

API_BASE=https://apitest.laji.fi
ACCESS_TOKEN=<Your access token>

For login redirection to work, the access token must have systemID KE.542 assigned. If you are not an inhouse developer, ask us to assign the systemID to your token by providing the email you requested the token with to helpdesk@laji.fi.

Running

npm start

Go with your browser to http://localhost:3000/

Running end-to-end tests

  1. Add the following to .env file at the root of the repository:
E2E_PERSON_TOKEN=
E2E_USER=
E2E_PASS=
  1. get the credentials to the e2e user from another developer (assuming you are an inhouse developer)
  2. run npm start to start laji.fi dev server
  3. run npx playwright test (for headless mode), npx playwright test --ui (for headful mode) or use the playwright vscode plugin

Further help

You can contact us by sending feedback from laji.fi

About

Frontend for Finnish Biodiversity Information Facility (FinBIF) data portal laji.fi (and other *.laji.fi frontends)

Topics

Resources

License

Stars

9 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors