Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alex-cory/portfolio
Built with React, Relay, GraphQL, and all babel-node's ES2016 features!
https://github.com/alex-cory/portfolio
Last synced: about 1 month ago
JSON representation
Built with React, Relay, GraphQL, and all babel-node's ES2016 features!
- Host: GitHub
- URL: https://github.com/alex-cory/portfolio
- Owner: alex-cory
- Created: 2016-04-07T01:31:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-05-24T06:36:03.000Z (over 5 years ago)
- Last Synced: 2024-10-31T17:39:22.530Z (about 1 month ago)
- Language: JavaScript
- Homepage: http://alexcory.com
- Size: 39.1 MB
- Stars: 13
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-graphql - Portfolio Relay Example - An example website that fetches data from various apis and uses Relay and GraphQL to feed the data to React components! (Libraries / JavaScript Libraries)
- awesome-graphql - Portfolio Relay Example - An example website that fetches data from various apis and uses Relay and GraphQL to feed the data to React components! (Libraries / JavaScript Libraries)
README
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...````sh
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
```sh
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.