-
Notifications
You must be signed in to change notification settings - Fork 12
Server
Devin Smith edited this page Feb 3, 2017
·
5 revisions
The backend requires Node.js and MongoDB. While developing, you will likely want a local development environment, and when publishing, you will likely want it hosted. While there are many ways to setup either, where are 2 of the easiest.
To get started, you only need to follow the local setup instructions. You can Setup a remote server for production later.
- Download and install MongoDB for your platform
- If you are using brew, enter
brew install mongodb
into the terminal - If not, Download and install it from their website
- Run
mongod
when you have it installed
- You probably already have Node.js, but Install it if you don't
- Go to the ionic-video-chat-server directory and type
npm install
into the terminal - Type
npm start
in the terminal to start the server
The easiest way to get rolling with a server is to deploy to Heroku.
- Signup for Heroku if you have not already
- Click New then Create new App
- Click Create
- In the App settings, go to Deploy
- I recommend using GitHub to deploy rather than Heroku Git. If you need help setting up a GitHub repo, Checkout GitHub's Docs
- In Resources, Add an mLab MongoDB install
- Once you visit the app in heroku it should be setup!