Skip to content

Knight Hacks Fall 2022 Hackathon Registration Site

Notifications You must be signed in to change notification settings

KnightHacks/hackathon-2022

Repository files navigation

2022 Knight Hacks Hackathon Site

This repository is the home for the frontend code of the 2022 Knight Hacks Hackathon Website.

Installation

https://github.com/KnightHacks/hackathon-2022.git
cd hackathon-2022
npm install

Setup Environment Variables

Create a .env file declaring the REACT_APP_API_ENDPOINT and REACT_APP_OAUTH_AUTH_REDIRECT variables.

REACT_APP_API_ENDPOINT is the url pointing to the backend you are using.

REACT_APP_OAUTH_AUTH_REDIRECT is the url that your application should return to after completing Github oAuth.

Example:

.env

REACT_APP_API_ENDPOINT=http://localhost:4000
REACT_APP_OAUTH_AUTH_REDIRECT=http://localhost:3000/auth_redirect

Getting Started

To run a live development server, run the following in a terminal:

npm run start

This will host the website at http://localhost:3000. As you make updates to the code, the development server will automatically reload the page.