Skip to content

yongcycchen/prisel

 
 

Repository files navigation

prisel

Build Status License version lerna

(WIP) Monopoly game built with TypeScript.

screenshot

Development

Installation

The main part of the project can be built inside dev container or locally. If you have Visual Studio Code, it's recommended to set up remote development following the following step:

  1. Pull down this repo.
  2. Use npm ci to install packages.
  3. Use npm run build to build packages.
  4. Install Docker Desktop 2.0+ on Windows or macOS or Docker CE/EE 18.06+ as required by this doc.
  5. Install VSCode Remote - Containers extension.
  6. Run Remote-Containers: Open Folder in Container... command from Command Palette(F1) and select the cloned priesl folder
  7. When container starts, it will run npm ci to install all dependencies
  8. Install CocosDashboard and use it to download CocosCreator 2.3.2. Both CocosDashboard and CocosCreator should be installed in your local environment. After that you can use CocosCreator to open the game project in packages/monopoly-client/project.json

@prisel/monopoly-client is built using CocosCreator-2.3.2, because Cocos Creator is a GUI application, it cannot run in container.

Running

run server

npm run start:monopoly-server

This will run on port 3000

run client

In CocosCreator, click the run buttonrun button

run demo docker containers

I have packaged the server and clients in docker containers prisel/monopoly-server and prisel/monopoly-client. To run a local demo, we can simply use docker compose in project root directory:

docker-compose up -d

To see the logs

docker-compose logs -f

To turn down the servers

docker-compose down

About

Making a online monopoly game

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 51.2%
  • C# 44.8%
  • JavaScript 2.1%
  • CSS 1.0%
  • HTML 0.6%
  • Dockerfile 0.2%
  • Other 0.1%