{"repo":"ScreepsMods/screepsmod-mongo","free":true,"listed":false,"github":"https://github.com/ScreepsMods/screepsmod-mongo","clone":"git clone https://github.com/ScreepsMods/screepsmod-mongo.git","description":"Replace LokiJS with MongoDB and Redis","language":"JavaScript","stars":26,"topics":["screeps","redis","mongo","mod","screeps-modules","screepsmod","hacktoberfest"],"license":"MIT","category":"databases-storage","readme_excerpt":"screepsmod-mongo MongoDB And Redis for the Screeps Private Server Requirements screeps 4.0+ mongodb 2.6+ redis 3.0.6+ For Windows installs, you can follow these steps: https://github.com/ServiceStack/redis-windows#option-3-running-microsofts-native-port-of-redis Installation Installing on Ubuntu? Check out the community guide in the official Docs Private server on Ubuntu using MongoDB and Redis or the newer screeps-launcher guide Newbie-friendly (ish) private/dedicated server setup guide for Ubuntu 18.04, with automatic startup 1. Ensure both mongodb and redis are already installed and running 2. npm install screepsmod-mongo inside your server's mods folder 3. Ensure the mod has been added to mods.json. Eg: 4. Start server! 5. DB Population mongo.importDB() in the screeps cli imports your existing DB OR system.resetAllData() in the screeps cli for a completely fresh DB 6. Once done restart the server 7. Done! Usage With this mod installed you can continue to manage the server as usual, all CLI commands behave identically. The original storage module will still run, but is completely ignored. Keep in mind that RAM requirements are slightly higher, by default mongo uses 50% - 1G of your system RAM. Redis on the other hand, uses very little. Mongo and Redis CLIs can be used to see and modify the data as usual, backups and restores should be done via normal mongo and redis tools. https://docs.mongodb.com/manual/tutorial/backup-and-restore-tools/ https://redis.io/topics/persistenc","default_branch":null,"files":null,"tree":[],"storefront":"/r/ScreepsMods","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ScreepsMods/screepsmod-mongo/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}