A Game Gold Rush - this repo is the server-side with nestjs.
View Demo
·
Report Bug
To get a local copy up and running follow these simple steps.
If you want to control the project from nest.js cli I suggest you install nest.js first:
- npm
npm i -g @nestjs/cli
- Clone the repo
git clone https://github.com/tomeraitz/gold-rush-server.git
- Install NPM packages
npm install
- Run It on localhost with client repository(8000)
npm run start:dev
Note! This project won't do a lot without the client side.
- Run It on localhost with test environment(8000)
npm run start:debug
Note! This is only a simple UI to check if the functions work.
src
- main.ts - Activate the server
- app.modules.ts - Import all the main modules.
- app.controller.ts - The default get request.
- single-player
- single-player.gateway.ts - The script that Activates the WebSocket.
- single-player.modules.ts - Import the game module.
- gold-rush-game
- gold-rush-game-logic.service.ts - Inside it's all the computer calculation movement.
- gold-rush-game.controller.ts - This script receives and gives back data from WebSocket.
- gold-rush-game.module.ts - Import the game module and websocket module.
- gold-rush-game.service.ts - This script is handled with all the user inputs and creates the game data.
- The project live at Heroku
- The Read me file was created with the template Best-README-Template