Last active
June 21, 2016 12:15
-
-
Save Maarten-Wijnants/011210aeac20ff49e119 to your computer and use it in GitHub Desktop.
Parse server installation instructions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Node.js 4.3 | |
cd ~ | |
sudo apt-get install curl | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash | |
nvm install 4.3 | |
sudo apt-get remove node | |
// mongodb 3.0.9 | |
https://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 | |
echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list | |
sudo apt-get update | |
sudo apt-get install mongodb-org=3.0.9 mongodb-org-server=3.0.9 mongodb-org-shell=3.0.9 mongodb-org-mongos=3.0.9 mongodb-org-tools=3.0.9 | |
// Mongo-express | |
npm install mongo-express | |
https://github.com/mongo-express/mongo-express | |
parse-server | |
cd | |
git clone https://github.com/ParsePlatform/parse-server-example.git | |
cd parse-server-example | |
npm install | |
/home/parse-server-example/index.js: masterKey en appId aanpassen, dotNetKey toevoegen | |
npm start | |
http://localhost:1337 | |
cd | |
git clone https://github.com/ParsePlatform/parse-dashboard.git | |
cd parse-dashboard | |
npm install | |
/home/parse-dashboard/Parse-Dashboard/parse-dasboard-config.json: masterKey en appId aanpassen | |
npm start dashboard | |
http://localhost:4040 | |
sudo nano /etc/init.d/parse-server | |
# !/bin/sh | |
# /etc/init.d/parse-server | |
### BEGIN INIT INFO | |
# Provides: parse-server | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start Parse Server at boot time | |
# Description: Start Parse Server at boot time. | |
### END INIT INFO | |
case "$1" in | |
start) | |
echo "Starting Parse Server" | |
cd /home/administrator/parse-server-example/ | |
npm start | |
;; | |
*) | |
exit 1 | |
;; | |
esac | |
exit 0 | |
sudo chmod +x /etc/init.d/parse-server | |
sudo apt-get install nodejs-legacy | |
sudo apt-get install npm | |
sudo update-rc.d parse-server defaults | |
// Xamarin project | |
ParseClient.Initialize(new ParseClient .Configuration | |
{ | |
ApplicationId = "myAppId", //appId from parse-server-example/index.js | |
Server = "http://address:port/parse/" , | |
WindowsKey = "myDotNetKey" //dotNetKey from parse-server-example/index.js | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo apt-get install nodejs-legacy
sudo apt-get install npm
sudo update-rc.d parse-server defaults