Install Parse Server on Ubuntu (With Dashboard)
Read Time - 1 min
Being a firm believer in rapid prototyping, it is important to me not to try re-invent the wheel when working on side projects. Facebook's Parse project is one of the tools in my arsenal when it comes to getting a fully functional backend up and running in no time.
It gives you out of the box a full functioning backend and a great community maintaining the source code and making it easier to get started. Good starting point is the Parse Server Example App.
With just a few tweaks, you can get the server up with the dashboard out of the box. This will be walkthrough installing it on an ubuntu server since the boilerplate code already has one click install options for AWS, Heroku, etc.
- ssh into your server (I am assuming you are using a digital ocean droplet but it should work same on lightsail, etc)
ssh root@yourserverip
- Install Node
sudo apt-get update
sudo apt-get install nodejs
- Install Mongo DB
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
echo "deb \[ arch=amd64 \] https://repo.mongodb.org/apt/ubuntu precise/mongodb-org/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list
echo "deb \[ arch=amd64,arm64 \] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list
- Download and Clone the repository
- cd into the repo
git clone https://github.com/BruhKofi/my-parse-server-boilerplate.git
- Install Dependencies
npm install
- Change the config in index js to match your server. Change local host to your server’s address
- Fire Up your engines
npm start
*Your server must be working now. Depending on your server, you may have to visit YourServerIP:1337/dashboard. You can log in with the username and password which is set in Index.js.__
Now go forth and save the world