Install on OSX
Install on Windows Subsystem for Linux:
apt-get install redis-server
Install nodejs on OSX:
brew install node
Install nodejs on Windows Subsystem for Linux:
// you can use node --version 4.x or 6.x
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
Install bower and grunt:
sudo npm install -g bower
sudo npm install -g grunt-cli
Install solarcrusaders required packages
npm install
bower install
// Linux/OSX: /etc/hosts
// Windows 10: C:\Windows\System32\Drivers\etc\hosts
#
# Hosts file
#
127.0.0.1 localhost
127.0.0.1 localhost.dev
127.0.0.1 www.localhost.dev
127.0.0.1 play.localhost.dev
{
"silent": false,
"daemon": false,
"production": false,
"url": "http://localhost.dev:4567",
"secret": "secret",
"database": "redis",
"redis": {
"host": "127.0.0.1",
"port": "6379",
"password": "",
"database": "0",
"options": {}
}
}
// make sure you're in the
// root solarcrusaders directory
mkdir ./logs
touch ./logs/loader.log
touch ./logs/server.log
It is recommended that you clone solarcrusaders into /mnt/c/Users/name/Documents/ if you'd like to use Sublime or Windows IDE to edit project src files.
sudo service redis-server start
Then run:
grunt build:core
grunt build:solar
Every time you make changes to ./solarcrusaders/src/* you will need to re-run:
grunt build:solar
node app.js
redis-server
grunt
./solarcrusaders start
Open a web browser and navigate to http://play.localhost.dev:4567/