Skip to content

odedsh/budgetkey-app-generic-item

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

176 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Budget Key Generic Item Page

This is a generic item page for the Budget Key project.

To read on how it's used, please take a look here.

Quick Start (Set up a dev server)

  1. Clone && cd into directory
  2. npm install
  3. npm run dist-serve
  4. 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.

Themes

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Jupyter Notebook 84.1%
  • TypeScript 8.0%
  • HTML 5.0%
  • CSS 2.0%
  • JavaScript 0.9%
  • Dockerfile 0.0%