Skip to content

gal16v8d/pvz-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ab0a152 · Mar 24, 2025

History

38 Commits
Mar 18, 2023
Oct 30, 2024
Oct 30, 2024
Oct 20, 2023
Mar 3, 2025
May 14, 2023
Mar 18, 2023
May 14, 2023
Mar 18, 2023
Mar 24, 2025
Mar 3, 2025
Mar 18, 2023
Mar 18, 2023
Mar 18, 2023
Mar 24, 2025
Mar 24, 2025
May 14, 2023
May 14, 2023
May 14, 2023
May 14, 2023
May 14, 2023
Oct 30, 2024

Repository files navigation

PVZ-UI

This project was bootstrapped with Vite. Basically, its a really basic UI wiki view for all the data related to Plants Vs Zombies PC game. This is still an exploratory WIP, so it may get some data updates soon. This UI consumes a python API (see pvz-svc repo) who currently is not alive, since I am checking to deploy the backend service either in Railway or Deta. But UI is alive through a flag that enable mocking using MSW. It should be up, but if is not the case, feel free to ping.

Available Scripts

In the project directory, create a .env file (you can inspect available sample .env.sample), then you can use the following commands:

npm run dev

Runs the app in the development mode.
Open http://localhost:5173 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

npm run generate-api-model

Generate all the models from swagger docs available in the backend services, it can be upgraded by calling the command again.

Docker

To build the docker image, inside project dir:

docker build -t gsdd-pvz-ui .

Then run using something like:

docker run -p 5173:5173 -e VITE_API_URL=http://api.example.com -e VITE_APP_VERSION=0.0.1 -e VITE_ENABLE_MOCKS=true gsdd-pvz-ui

List of cool technologies in use here

License

MIT licensed.

Stay in touch