# Open Web App Generator

**URL:** <https://talk.openmrs.org/t/open-web-app-generator/5062>\
**Category:** Development\
**Created:** [March 3, 2016, 2:19pm UTC](https://talk.openmrs.org/t/open-web-app-generator/5062 "2016-03-03T14:19:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![raff](https://talk.openmrs.org/user_avatar/talk.openmrs.org/raff/32/11894_2.png) [@raff](https://talk.openmrs.org/u/raff)\
**Post date:** [March 3, 2016, 2:19pm UTC](https://talk.openmrs.org/t/open-web-app-generator/5062/1 "2016-03-03T14:19:26Z")

</div>

Hey @pascal ,

Thanks for your work on the OWA generator! We’ve just used it and it is awesomely simple! Would you have some time to add livereload to the generator as I did in this commit:

[https://github.com/rkorytkowski/openmrs-owa-conceptdictionary/commit/6c54fee692bcbbdd9e2b1d1999c86ab08ca35e3b](https://github.com/rkorytkowski/openmrs-owa-conceptdictionary/commit/6c54fee692bcbbdd9e2b1d1999c86ab08ca35e3b)

? Basically it triggers deploy-local whenever we make any change in a file.

Also we’re trying to figure out how to load the LOCAL\_OWA\_FOLDER variable from a separate file, which is not versioned in git so that devs can freely modify it without committing changes. If you know of any quick way, please do let us know.

Lastly, I would love us to be able to use [https://browsersync.io/](https://browsersync.io/) (replacement for livereload and more).

---

<div class="post-metadata">

**Author:** ![pascal](https://talk.openmrs.org/letter_avatar/pascal/32/6_449c533f586939b6e5f246632a46421f.png) [@pascal](https://talk.openmrs.org/u/pascal)\
**Post date:** [March 3, 2016, 6:10pm UTC](https://talk.openmrs.org/t/open-web-app-generator/5062/2 "2016-03-03T18:10:41Z")

</div>

Sure, I’ll create a ticket for myself to add live reloading. I’m using [environment variables](https://github.com/psbrandt/generator-openmrs-owa#environment-variables) to easily preset/change `OMRS_OWA_LOCAL_DIR` for the generator. Could you use something like that?

---

<div class="post-metadata">

**Author:** ![raff](https://talk.openmrs.org/user_avatar/talk.openmrs.org/raff/32/11894_2.png) [@raff](https://talk.openmrs.org/u/raff)\
**Post date:** [March 4, 2016, 9:51am UTC](https://talk.openmrs.org/t/open-web-app-generator/5062/3 "2016-03-04T09:51:32Z")

</div>

Thanks Pascal!

For the variable I meant to be able to change it after the project was generated so that when devs clone it, they can change the variable freely and git doesn’t prompt to commit that change. Here’s the proposed change:

[https://github.com/rkorytkowski/openmrs-owa-conceptdictionary/pull/3](https://github.com/rkorytkowski/openmrs-owa-conceptdictionary/pull/3)

---

<div class="post-metadata">

**Author:** ![pascal](https://talk.openmrs.org/letter_avatar/pascal/32/6_449c533f586939b6e5f246632a46421f.png) [@pascal](https://talk.openmrs.org/u/pascal)\
**Post date:** [March 8, 2016, 12:55am UTC](https://talk.openmrs.org/t/open-web-app-generator/5062/4 "2016-03-08T00:55:22Z")

</div>

Okay, I see what you mean. I’ll create a ticket.

---

<div class="post-metadata">

**Author:** ![pascal](https://talk.openmrs.org/letter_avatar/pascal/32/6_449c533f586939b6e5f246632a46421f.png) [@pascal](https://talk.openmrs.org/u/pascal)\
**Post date:** [March 11, 2016, 2:02am UTC](https://talk.openmrs.org/t/open-web-app-generator/5062/5 "2016-03-11T02:02:06Z")

</div>

## 🎉 Version 0.2.0 Released 🎉

Thanks to @raff for the suggestions and testing! Version 0.2.0 of the OWA generator comes with [Browsersync](https://www.browsersync.io/) support, which includes hot reloading, CSS injection, interaction sync between browser instances and more.

Config has been pulled out into a separate file to help developers on different platforms collaborate on OWAs more easily.

To upgrade your current installation, run:

```
npm install -g generator-openmrs-owa

```

Full documentation [here](https://www.npmjs.com/package/generator-openmrs-owa).
