HasangerGames / survivreloaded-server

An open source server for the defunct online game surviv.io. Work in progress.
https://resurviv.io
41 stars 23 forks source link

How Do I Run This With Github Codespaces #70

Closed EagleEye2010 closed 1 year ago

EagleEye2010 commented 1 year ago

It's self explanatory. Any help would be appreciated. Thanks!

lmssiehdev commented 1 year ago

what problem are you having exactly?

EagleEye2010 commented 1 year ago

I am trying to run this github codespaces, and it's getting the right files, I just don't know where to put the surviv reloaded client.

Here is the uploaded server:

github-1

And the uploaded client into the "public" directory:

github-2

Now how do I run it? Thanks.

hsanger commented 1 year ago

You're almost there. All you have to do now is run these commands:

npm install
npm run build
npm run dev
EagleEye2010 commented 1 year ago

I thought npm install was for installing a package

EagleEye2010 commented 1 year ago

Also it returns an error when I run any of these commands

hsanger commented 1 year ago

What's the error?

EagleEye2010 commented 1 year ago

Here is an image of it not working. It returns the same thing for npm run build and npm run dev

EagleEye2010 commented 1 year ago
image
hsanger commented 1 year ago

Are you sure you cloned the repo correctly? The following sequence of commands should work:

git clone https://github.com/SurvivReloaded/survivreloaded-server
cd survivreloaded-server
git clone https://github.com/SurvivReloaded/survivreloaded-client public
npm install
npm run build
npm run dev
EagleEye2010 commented 1 year ago

Oh did not realize I had to do cd survivreloaded-server. That seems to do the trick. Thanks!