alex-cory / portfolio

Built with React, Relay, GraphQL, and all babel-node's ES2016 features!

Home Page:http://alexcory.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Relay Portfolio

This is my portfolio that I built using Facebooks new React, Relay and GraphQL. I happened to use AWS's EC2 to host so I will cover setting that up in this as well.

Config

Make sure to setup the config file. Do this first because there are files dependent on this one having the correct data.

  1. Make sure to rename the file config/example_config.js to config/config.js
  2. Fill in your usernames and urls

AWS EC2 Setup

Dependencies

  • Ubuntu Server
  • pm2

Step 1

Install nodejs, git...

sudo apt-get update
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y git oh-my-zsh nodejs

I personally like to create a folder www and store my projects in there. So for my portfolio directory on the server it would look like www/alexcory.com where alexcory.com is my project folder.

Step 2

Instead of running on port 80 you can redirect port 80 to your application's port (>1024) using

iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3000

This will work if your application is running on port 3000.

About

Built with React, Relay, GraphQL, and all babel-node's ES2016 features!

http://alexcory.com


Languages

Language:JavaScript 84.0%Language:CSS 10.2%Language:HTML 5.8%