https://github.com/moonhighway/host-election
Empowering the people of React-a-thon to choose their own host. πΊπΈπ¨βπ¨βπ§βπ¦π¨βπ©βπ¦βπ¦πΊπΈ
https://github.com/moonhighway/host-election
Last synced: 11 months ago
JSON representation
Empowering the people of React-a-thon to choose their own host. πΊπΈπ¨βπ¨βπ§βπ¦π¨βπ©βπ¦βπ¦πΊπΈ
- Host: GitHub
- URL: https://github.com/moonhighway/host-election
- Owner: MoonHighway
- License: mit
- Created: 2019-03-23T03:05:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-31T15:34:00.000Z (about 7 years ago)
- Last Synced: 2025-06-15T17:07:28.396Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 670 KB
- Stars: 5
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# React-a-thon Host Election
Empowering the people of React-a-thon to choose their own host. πΊπΈπ¨βπ¨βπ§βπ¦π¨βπ©βπ¦βπ¦πΊπΈ
## Installation
1. Create a new Environment file: **./client/.env**
2. Add the following environment variables:
```
SKIP_PREFLIGHT_CHECK=true
REACT_APP_GRAPHQL_URI=http://localhost:4000/graphql
REACT_APP_SUBSCRIPTION_ENDPOINT=ws://localhost:4000/graphql
```
3. Install Dependencies, build React App: `npm install`
4. Run Production app: `npm start`
5. GraphQL Playground: `http://localhost:4000`
6. Live Election Results: `http://localhost:4000/results`
## Run Development
1. Open terminal to **./api** folder: `open -a Terminal ./api`
2. Start the Development API: `api> npm start`
3. Open terminal to **./client** folder: `open -a Terminal ./client`
4. Start the Development API: `client> npm start`
5. The GraphQL Playground is running at: `http://localhost:4000`
6. The `results` React Client is running on: `http://localhost:3000`