Simple nodeJS server for 2048 game
To start server run following commands in terminal:
npm i
npm run run-server
To setup mongoDB on local machine (all steps related to macOS users only):
brew tap mongodb/brew
brew install [email protected]
brew services start [email protected]
- if you use Catalina OS run
mkdir -p /Users/user/data/db
and all commands from SO post mongod --dbpath=/Users/user/data/db --replSet "rs"
- to setup replication setmongo
->rs.initiate()
->use gamesDb
-> db.createCollection('rooms')