The frontend of the InkVisitor is written in TypeScript, plus several other packages, mainly:
- React for creating components
- Redux toolkit for handling global state
- Styled components for making things nicer (as a replacement of S/CSS)
- Webpack for bundling
Package uses different environments - each of them has dedicated .env.<env>
file coupled with pnpm build-<env>
task. Development environment has also pnpm start
script.
See example.env file for description of variables.
pnpm install
pnpm start
Frontend are just static files - html/css/js + additional assets. These can be fetched by any http server.
- Build the frontend app by
pnpm build:<env>
to create/update thedist
folder - Copy contents of
dist
folder to directory used by your http server.
To keep it simple, we are using just one container holding both frontend and backend. Please see the main README.md in the root.