This is a generic item page for the Budget Key project.
To read on how it's used, please take a look here.
- Clone && cd into directory
npm installnpm run dist-serve- example app url which should be available: http://localhost:8000/org/association/580050789
You should make sure you use the correct node version, at time of writing it's v8.3.0. If you have nvm installed,
you can just run nvm install and you will have the correct version.
The core components and apps support themes for reusability of common code.
To run the app with a different theme, you need to set the theme in theme.THEME_NAME.json
For example, theme.govbuy.json:
{
"BUDGETKEY_NG2_COMPONENTS_THEME": {
"siteName": "רכש פתוח"
},
"BUDGETKEY_APP_GENERIC_ITEM_THEME": {
"siteName": "רכש פתוח",
"searchPlaceholder": "חפשו רכש!"
}
}To enable a theme, add it to the URL, e.g. http://localhost:8000/org/association/580050789?theme=govbuy
The theme files could be overwritten by docker volume - to allow to use the same image to serve the app using different themes.
For example, given a modified theme in ./my-theme.json:
docker build -t budgetkey-app-generic-item .
docker run -it -v `pwd`/my-theme.json:/app/theme.my.json --rm --name budgetkey-app-generic-item -p8000:8000 budgetkey-app-generic-item
You could then add ?theme=my to enable this theme