Web app of kasthanka.pet
The application provides an interface between the human volunteers and the kashtanka.pet system. The volunteers can explore the pet cards stored in the system and search for the possible lost/found matches between them.
The app is single page application (SPA) made with TypeScript + React + Webpack + CSCC toolchain, wrapped into Docker image.
It communicates with the REST APIs of the kashtanka.pet system.
All pull requests are checked with CI automation.
Built releases are automatically published to Docker Hub and are ready to use.
You will need to install the following prerequsites to build the repo
- Change dir to the root of the repo
- Install the dependencies by executing
yarn
- Start the development server by running
yarn start
.
If you want to query the original kashtanka.pet database (default behavior, can be overriden by constants in App.tsx), make sure that you run the development server on http://localhost:3000, as production REST APIs allow CORS requests only from this development URL.
- Change dir to the root of the repo
- Install the dependencies by executing
yarn
- Create production bundle by running
yarn build
The Dockerfile
in the root of the repo defines the Docker image that creates a production bundle and serves it with a lightweight static content HTTP server.