Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 977 Bytes

development.md

File metadata and controls

48 lines (33 loc) · 977 Bytes

Development

This document describes the process for running this application on your local computer.

Prerequisites

  • node.js > 18
  • yarn > 1.22

Getting started

You can configure laskakit-data-feeder/.env to simulate options from Homeassistant. (At least LASKAKIT_URL)

git git@github.com:radoslavirha/ha-addon-laskakit-data-feeder.git
cd ha-addon-laskakit-data-feeder
yarn install # install husky and commitlint
cd laskakit-data-feeder
yarn install
yarn start

You should now have a running server on localhost:8000.

When you're ready to stop your local server, type Ctrl+C in your terminal window.

Lint

Runs eslint on code:

cd laskakit-data-feeder
yarn lint

Build

cd laskakit-data-feeder
yarn build

When server is built, you can start it in production mode (suitable for HA add-on in docker) (requires env variables):

cd laskakit-data-feeder
yarn start:prod