On this page
Installation
Clone the repository
Change directory to project folder
Install nodeJS modules from npm
git clone https://github.com/CentriaUniversityOfAppliedSciences/DigiBioGasHub.git cd DigiBioGasHub npm install --legacy-peer-depsCreate .env file
Create missing file (Biokaasuklinikka chatbot is not part of this project)
nano .env touch src/components/BKKlinikkaComponent.vue.env file contents
VITE_BACKEND_ADDRESS=https://address_to_server/api VITE_CHATSERVER=https://address_to_server/chatserver VITE_CHATSOCKET=https://address_to_server VITE_ENABLE_BIOKAASUKLINIKKA=false #true only if BKKlinikkaComponent.vue file exists VITE_CUBE_ADDRESS=https://address_to_server/analytics VITE_USE_PAYMENT=falseStart frontend. Run in dev mode (ionic serve) or build for production
ionic serve #development ionic build --prod #build production site
NOTE! You need to change memory limit for nodejs to be able to build the project
export NODE_OPTIONS=--max_old_space_size=8192