Backend for Space Zoologist.
- Clone this repository.
- Install node.js if you do not have it. Link here: https://nodejs.org/en/
- At root of project, run command
npm installto install all package dependencies. - Ask administrator for access to the dev.js file, which should be added to the project under the config folder. This is supposed to be your own local dev config; not to be shared publicly as it contains sensitive information.
- At root of project, run command
npm run dev. This executes a script called 'dev' inside package.json. - (Optional) If you wish to run with debug commands, at root of project, run command
DEBUG=* node server.js. - Once running, the server is able to handle requests sent to the local port via the game. Ensure that the target URLs used in the game match either dev or prod; whatever you are using.
- If you haven't done the above, do so now.
- Follow instructions to download Heroku CLI (https://devcenter.heroku.com/articles/heroku-cli).
- Login to Heroku using command
heroku loginwith credentials granted by administrator. - Ensure that the branch
prodin this repo contains only shippable code, and your localprodbranch is up-to-date after pulling from origin. - From local
prodbranch, run commandgit push heroku prod:main. The remote website will now be updated.