This is backend code of geopolitical game WorldSuperpowers. Take part in the creation of a powerful geopolitical empire. Trade, fight, work, vote and play.
- customize content inside private folder, sendMail and transporter in utils folder and ecosystem.config.js in main folder (pm2 configuration)
- you should have postgresql installed and started
- create local copy of starting database
cp starting_database.sql /tmp/starting_database.sql
- get into postgres shell
sudo -i -u postgres
- restore starting database
psql -f /tmp/starting_database.sql postgres
- install pm2
npm install pm2 -g
- Install NPM packages
npm install
- start worldsuperpowers backend
pm2 start ecosystem.config.js