(WIP) Monopoly game built with TypeScript.
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:
- Pull down this repo.
- Use
npm ci
to install packages. - Use
npm run build
to build packages. - Install Docker Desktop 2.0+ on Windows or macOS or Docker CE/EE 18.06+ as required by this doc.
- Install VSCode Remote - Containers extension.
- Run
Remote-Containers: Open Folder in Container...
command from Command Palette(F1
) and select the cloned priesl folder - When container starts, it will run
npm ci
to install all dependencies - 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.
npm run start:monopoly-server
This will run on port 3000
In CocosCreator, click the run button
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