Skip to content

Latest commit

 

History

History
74 lines (59 loc) · 2.35 KB

BackEndSetup.md

File metadata and controls

74 lines (59 loc) · 2.35 KB

Launching AWS Instance

  1. Create account
  2. Click EC2
  3. Launch instance
  4. Select Ubuntu 14.04
  5. Select first tier
  6. Configure network
  7. Add storage
  8. Name the instance
  9. Create a security group with only your IP (for now)
  10. Download security key

SSHing into AWS

Run:

chmod 400 [name of .pem file]
ssh -i [name of .pem file] ubuntu@[name of AWS instance]

Installing Node and testing

sudo apt-get install git
git clone https://github.com/heroku/node-js-sample.git
cd node-js-sample/
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
npm install
npm start

Edit index.js to use port 8080 instead of 5000

vim index.js

change:

app.set('port', (process.env.PORT || 5000))

to:

app.set('port', (process.env.PORT || 8080))

Configure network

sudo vim /etc/sysctl.conf" and uncomment "net.ipv4.ip_forward
sudo sysctl -p /etc/sysctl.conf
cat /proc/sys/net/ipv4/ip_forward
sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
sudo iptables -A INPUT -p tcp -m tcp --sport 80 -j ACCEPT
sudo iptables -A OUTPUT -p tcp -m tcp --dport 80 -j ACCEPT
npm start

In AWS:

  1. Click on the security group you created that is listed in the instance
  2. Click on the "inbound" tab
  3. Click "edit"
  4. Click "Add Rule"
  5. Type: HTTP and Source: Anywhere
  6. Save

Installing Xamarin

  1. Navigate to Xamarin's webpage (http://developer.xamarin.com/)
  2. Under the "pricing" tab, scroll down to the FAQ and click the link for student pricing
  3. Fill in the required info and await an email where you will need to show proof of your student status
  4. Download and install Xamarin when confirmation email is received

Linking Xamarin and Visual Studio

refer to documentation at the following URL: http://developer.xamarin.com/guides/cross-platform/getting_started/visual_studio_with_xamarin/cross_platform_visual_studio_project_setup_walkthrough/