Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewnha committed Dec 3, 2019
0 parents commit 68a0ecb
Show file tree
Hide file tree
Showing 67 changed files with 28,063 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*/node_modules
*.env
*.env.development
*.env.production
*.DS_STORE
*/logs
*.csv
*/build
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# HackDavis Judging App

## How to setup
1. Install mongodb
2. Install Parse server dependencies

- `cd [MAIN_DIR]/parse-server`
- `npm install`

3. Install React app dependencies

- `cd [MAIN_DIR]/client`
- `npm install`

4. Create `.env` files from templates and configure in both `/parse-server` and `/client`

# How to run
1. Start mongodb
2. Start parse server and dashboard
- `cd [MAIN_DIR]/parse-server`
- `npm start` / `npm start initdb` (First time)
3. Start react-app
- `cd [MAIN_DIR]/client`
- `npm start`

# Parse Dashboard
Default: `http://localhost:8080/dashboard`

# Parse Classes
If anyone of these don't exist after running `npm start initdb`, you'll need to create it through the dashboard.
* Role
* Session
* User
* Category
* Global
* Project
* Team
* Vote
3 changes: 3 additions & 0 deletions client/.env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
NODE_PATH=src
REACT_APP_PARSE_URL=http://localhost:8080/parse
REACT_APP_APP_ID=REPLACE_ME # should be the app id of your parse server
68 changes: 68 additions & 0 deletions client/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.<br>
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.<br>
You will also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.<br>
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.<br>
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br>
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

### Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

### Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

### Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

### Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

### `npm run build` fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
5 changes: 5 additions & 0 deletions client/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"compilerOptions": {
"baseUrl": "./src"
}
}
Loading

0 comments on commit 68a0ecb

Please sign in to comment.