butane
butane copied to clipboard
Create online translator
Similar to the Container Linux validator there should be an host version of FCCT.
Rough proposal:
- A service that wraps FCCT and acts as an HTTP endpoint for translation. Run it in a container for easy hosting.
- Static page with some kind of text box that makes requests to that service to do the translation.
- The page should be able to read URL params (or something similar) to autofill the text box. This enables people to create links to specific configs when reporting bugs and allows the FCCT documentation to have "try it" links for the examples.
Link: https://github.com/zonggen/fcct-online Stack: Vue.js, Flask
- [x] Front end that reads URL to autofill the text box
- [x] Front end that contains a text box and button to submit a HTTP request to server
- [x] Server that reads HTTP request & URL parameter for translation
- [x] Run inside a container
- [x] Need a button for generating URL with FCC encoded
- [x] Need to format the returned error message more elegantly
- [x] Need to parse the error message returned from server to highlight origin of error in original FCC
- [ ] Deploy on Openshift instance (Still waiting for access)
Discussion thread on deployment location: https://github.com/coreos/fedora-coreos-tracker/issues/260