This is a webapp that holds and presents images, for drawing reference. This repo holds the frontend React app.
See the planning document for details about the project design and future plans, and the backend repo for the interface.
You can configure the frontend through these environment variables:
VITE_DRAWREF_API
: The backend address, with/api/
at the end.VITE_DRAWREF_UPLOAD
: The backend address, with/upload/
at the end.
These environment variables also work on the docker image.
You can get the frontend up and running quickly with Docker. Note, this runs a development build, and is not appropriate for production hosting.
The quick start instructions on the backend explain starting both components.
But here is just starting the frontend:
docker run -it -e VITE_DRAWREF_API=http://localhost:3300/api/ -e VITE_DRAWREF_UPLOAD=http://localhost:3300/upload/ -p 3000:3000 ghcr.io/danieloaks/drawref-frontend:main
Finally, access the app on port 3000. If running the command locally, at http://localhost:3000
If you want to get started developing the app, you can use the below commands.
Make sure to install the dependencies:
asdf install # sets up the right version of nodejs
yarn install
Start the development server on http://localhost:3000
yarn dev
Run the test suite:
yarn test
See create-react-app / running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance. The build is minified and the filenames include the hashes.
See create-react-app / deployment for more information.
yarn build
This software is released under the ISC license.