Testbed for libraries and practices to be used in revamped Zetkin front-ends.
First you must stop any other service listening on port 80, e.g. Zetkin. Then run using docker-compose:
$ docker-compose up --build
Navigate to http://localhost
to find the testbed home page.
Step by step guide for creating a new UI library sandbox:
- Install the library by adding it to package.json
dependencies
and rebuilding - Create a new component in
src/components/ui
, e.g.src/components/ui/AcmeUILibrary.jsx
- Add a reference to the new component in
src/components/ui/index.js
with a name, e.g.acme-ui
- Navigate to
http://localhost
and click the link toacme-ui
there - Build UI in
AcmeUILibrary.jsx