Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 1.8 KB

README.md

File metadata and controls

58 lines (37 loc) · 1.8 KB

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, you can run:

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