This is the frontend for the Web Bomberman project.
Clone the repository on your machine and install dependencies.
git clone git@github.com:web-bomberman/html.git
cd html
npm install
Then, create your .env
file with a VITE_API_URL
variable, just like the
.env.example
file containing the URL to the
API you intend to run locally.
On the folder you downloaded the project, run this on your terminal:
npm run dev
This will put a server up that you can only access on your computer. If you want other devices to access it, run in host mode with the following command:
npm run dev:host
In order for other devices to reach your machine, they must be connected to the same router your machine is connected to.
We're using the classic ESLinter + Prettier combination. Run the following before pushing to the repository and make sure you fix all errors.
npm run lint
The errors that can be automatically fixed can be done so by running this:
npm run lint:fix
Licensed under MIT.