#What are the current instructions?
They seem to expect Ubuntu: http://habitrpg.wikia.com/wiki/Setting_up_HabitRPG_locally
#Install Fedora
I'm using Fedora 21 Server in this attempt.
#Get NodeJS
It's pretty easy according to the docs.
sudo yum install nodejs npm
At the time of writing this got me Node v0.10.33
#Get Git
Again, pretty easy, I just guessed this.
sudo yum git
At the time of writing this got me git version 2.1.0
#Get MongoDB
So this is a little more involved, but we're gonna work through it since Mongo provides instructions.
At the time of writing this got me mongodb version 2.6.7-1
#Checkout Habitrpg
If you're using GitHub, then you might want to set up the sshkeys so you don't have to enter your password all the time. The GitHub instructions work except for the command to start ssh-agent:
http://docs.fedoraproject.org/en-US/Fedora/12/html/Deployment_Guide/s3-openssh-config-ssh-agent.html
I used the whole git clone then check out my clone method. The directions on Habitrpg are good for this.
I made a local directory under home (~) called projects then cloned my repo there.
#Start the typical steps for Unix
Install grunt-cli and bower. This requires sudo.
sudo npm install -g grunt-cli bower
Then run npm install:
npm install
Make sure Mongo DB is running
service mongod start
Copy the config.json.example file and edit the required fields.
Expose port 3000 on the firewall (remember, I used FedoraServer, a workstation might be different):
firewall-cmd --zone=FedoraServer -add-port=3000/tcp
Then start the app:
npm start
And navigate to http://hostname:3000/ and you should see habitrpg
#Final thoughts
Was pretty straightforward. Might be worth trying to make a fedora vagrant vm.