@boklisten/bl-login

`bl-login` is a login and registration module for Boklisten.no. This README is for development and technical documentation. For a deep-dive into what `bl-login` is and can do [please read our documentation](https://github.com/boklisten/bl-doc/blob/mas

Usage no npm install needed!

<script type="module">
  import boklistenBlLogin from 'https://cdn.skypack.dev/@boklisten/bl-login';
</script>

README

bl-login

bl-login is a login and registration module for Boklisten.no. This README is for development and technical documentation. For a deep-dive into what bl-login is and can do please read our documentation

Requirements

  • NodeJS v8.0 or higher
  • Typescript v3.0 or higher
  • NPM v6.14.0 or higher
  • bl-api v1.11.2 or higher

How to run

  1. Clone this repo to your own computer git clone https://github.com/boklisten/bl-login
  2. Navigate into the newly created bl-login folder
  3. Install npm modules npm i
  4. Ensure that bl-api is running on http://localhost:1337
    • You will not be able to test login or register if bl-api is not running.
  5. Start application locally with npm run watch
  6. You should now be able to view bl-login on localhost:4200

Development

NPM scripts

npm run watch

Runs the application and can be viewed on localhost:4200.

npm run pub

Builds and publishes the bl-login module to npm.

npm run extract-i18n

Extracts all i18n tags from all the html files and puts them into three differnet xlf-file under ./src/locale.

Build files

./xliffmerge.json

This is the settings file for i18n the translator ngx-i18nsupport. Read more.