Simple react web app to show the progress of users participating in Hacktoberfest 2018.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
This project requires Node.js. Run npm install
to install all dependencies. To execute the web application run npm run start
.
Until we get a way to setup local GraphQL envs the app is using an AWS instance for those queries.
This instance has CORS enabled and will only respond to requests coming from the domain https://hacktoberfest18.sovtech.org/
.
To get up and running with the app, you can setup a local proxy masking that domain by:
- Adding
hacktoberfest18.sovtech.org
to your hosts file - Installing nginx and adding this to your a enabled site:
server {
listen 443 ssl;
server_name hacktoberfest18.sovtech.org;
ssl_certificate /etc/nginx/fake.crt;
ssl_certificate_key /etc/nginx/fake.key;
location / {
proxy_pass http://127.0.0.1:3000;
}
}
- Generate those fake certificates:
cd /etc/nginx
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout fake.key -out fake.crt
- Make sure to restart nginx and refresh your browser hard to get the local version of the running app.
- Andre Hofmeister - Updated README.md with basic information - padme-amidala
- Marcos Ibanez - Added local SSL info to README.md, added Github Ribbon - mgi1982