Skip to content

AndreBryant/deer-game

Repository files navigation

go to root of the project, then

npm i

once finished, follow these

How to start development

npm run dev

if theres nothing running in port 5173, the game should be on localhost:5173

to host it in a network, instead of npm run dev, you use

npm run dev -- --host

same for the one above but now, you can access the game if connected to the same network as the machine. you should be able to see 192.168.x.x:5173 <-- this is the link to the game on any devices

Building the game for production

separate terminals for server and client

Note: you have to do this everytime you are deploying with a specifc wifi connection. You cannot build this with UP STUDENT wifi and still expect the build to run on UP AP1

Server:

npm run build:backend
npm run start:backend

Client:

npm run build

if you want to preview the production state of the gaem.

npm run preview -- --host

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published