Installation¶
Perform the following steps to run a local version of the Theme Builder application.
Fetch Latest Code¶
These instructions assume you have a forked instance of finos/a11y-theme-builder in your personal GitHub account.
mkdir <WORKSPACE>
cd <WORKSPACE>
git clone https://github.com/<YOUR-ORG>/a11y-theme-builder
cd a11y-theme-builder
where:
<WORKSPACE>
is the path to the local folder where you want to create a copy of the GitHub repository.<YOUR-ORG>
is the name of your GitHub account or personal GitHub organization.
Quick and Easy¶
Building and running the Theme Builder application using Docker
can be achieved in a few simple steps, which all assume /code
as the working directory.
Build Theme Builder Docker image¶
Start the Theme Builder application in a new Docker container¶
View the Theme Builder application in your browser¶
To access the running Theme Builder application, load the following URL into a browser:
Remove the stopped Application build image¶
To remove the Theme Builder Docker image from your system run the following command.
Note that the application container must be stopped and removed before the image can be removed. Once the image is removed, you won't be able to run the Theme Builder application unless you build the Docker image again.
Javascript Runtime Environment¶
The following commands will build and run the Theme Builder application using a local Node.js environment running on a Linux distribution such as MacOS:
Build the Theme Builder application¶
Run the Theme Builder application¶
View the Theme Builder application in your browser¶
To access the Theme Builder application, load the following URL into a browser:
Windows Specific Steps¶
Currently, there are a few extra steps to use the app on a Windows system:
- delete both
package-lock.json
files before build<WORKSPACE>/a11y-theme-builder/code/package-lock.json
<WORKSPACE>/a11y-theme-builder/code/src/ui/package-lock.json
- replace
'
chars in the debug script in the package.json with\"
, so that it reads - delete the
data/themes
file, before running the application<WORKSPACE>/a11y-theme-builder/code/src/data/themes