Nodesrv is a text-based web socket MUD framework.
Getting started is broken into three sections:
- installing all the necessary dependencies and database setup
- starting the game server
- starting a client
Server setup assumes the target system has:
- internet access
- git
- docker, docker-compose
- nodejs runtime
- yarn
Clone this repository
git clone https://github.com/danielmunro/nodesrv && cd nodesrv
Install application dependencies
yarn
Create the database
docker-compose up -d db
psql -U postgres -h localhost -c 'create database nodesrv;'
Copy the database configuration file and modify with the correct connection settings:
cp ormconfig.json.example ormconfig.json
vim ormconfig.json
Finally, import game fixtures
yarn create-fixtures --write
In order to start the server, run:
yarn start
The default port is 5151.
In a new terminal, clone and run the client repository.
git clone https://github.com/danielmunro/nodeclient
cd nodeclient
yarn start
Run all tests, no coverage:
yarn test -i
Generate coverage report, takes longer:
yarn test-coverage -i
Test most functionality, no database interactions, very quick:
yarn test-most -w 6