A skeleton project to demonstrate a minimal setup of an IMQS frontend app leveraging the www-lib sub-repository.
To run the service from the command line:
- Change port in
sample_config/*.json
files. - Add route from
/wwwtemplate
this port torouter-config.json
and restart ImqsRouter service. If you want to use you project's own URL path, rename all occurances ofwwwtemplate
in this repository to your project name. - Build:
go build
- Run:
wwwtemplate.exe -c config_sample/config.json
- Change directory to
www
- Run
npm run build
to compile, package and minify the code. The build artifacts will be in thedist/
directory. - Open
http://localhost/wwwtemplate/www
and you should see the app running (you will need a route for/wwwtemplate
set up in router-config for this to work).
- Run
npm run dev
to build an in-memory version of the build artifacts. This will live-update the parts of the page that changes as you develop. - Open
http://localhost:2501/wwwtemplate/www/
and you should see the app running.
- Fork this repository.
- Search for all occurances of "wwwtemplate" and replace them with you project name.