Deploy the Server
The mirror server is built with node.js. If you are running it on a server you will need to download node.js here or install it on your server to run the mirror server.
If you are hosting the server on linux see a more advanced tutorial here.
Deploy via hosting service
Here are a list of hosting services and deployment urls
Deploy via terminal
# Clone the repository files to your machine
git clone https://github.com/EmberNetwork/Mirror.git
cd Mirror
# Install packges and run the server
npm install
npm start
You can now go to http://localhost:8080/ to view the server. Read more about avalible api enpoints here.
Run in background
This is best for servers that are continually up and need to do multiple tasks.
# I would recomend pm2 as it has many features, however packages like forever also work
# Install pm2 with sudo if you are running with non root permissions
npm install pm2 -g
pm2 start "npm start" --name Mirror
# Restart and stop the server with pm2
pm2 restart Mirror
pm2 stop Mirror
You can read more about pm2 here.