Built with React, Relay, GraphQL, and all babel-node's ES2016 features!
JavaScript CSS HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
build
config
public
scripts
src
.babelrc
.gitignore
README.md
loaders.js
log.txt
package.json
server.js

README.md

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.