https://github.com/hack-rice/hack-rice-website
The home of HackRice
https://github.com/hack-rice/hack-rice-website
Last synced: 4 months ago
JSON representation
The home of HackRice
- Host: GitHub
- URL: https://github.com/hack-rice/hack-rice-website
- Owner: hack-rice
- Created: 2012-12-30T22:15:40.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2026-01-23T03:37:32.000Z (5 months ago)
- Last Synced: 2026-01-23T20:54:44.652Z (5 months ago)
- Language: JavaScript
- Homepage: https://hack.rice.edu
- Size: 182 MB
- Stars: 5
- Watchers: 8
- Forks: 5
- Open Issues: 196
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HackRice
🚀 This site is deployed at [hack.rice.edu](https://hack.rice.edu).
### About

This app is built using [Next.js](https://github.com/zeit/next.js/) and [Rebass](https://rebassjs.org). The following assumes you have [npm](https://www.npmjs.com/) installed.
### Getting Started
##### 1. Clone repository.
```
$ git clone https://github.com/hack-rice/hack-rice-website.git && cd hackrice
```
##### 2. Install `npm` packages.
```
$ npm install
```
This may take a few minutes.
##### 3. Start the process in developer mode (hot-reloading).
```
$ npm run dev
```
##### 4. Make content edits.
Open the `content` folder in your preferred text editor. You should see a list of files:
```
content
|__sponsors.js
|__judging.js
|__about.js
|__tracks.js
|__faq.js
|__intro.js
|__calendar.js
```
Open the file corresponding to the component you'd like to update. Let's say we want to add an item
to the calendar.
```javascript
const friday = [
{
time: "4:30 PM",
title: "Early Registration",
detail: "Registration begins for participants."
},
...
]
```
We infer that adding an event is adding an object to an array corresponding to each day of the hackathon.
##### 5. Push your changes to production.
Now, let's say we want to push this change to production. Note that this project is configured to be hosted
on Github Pages, and thus the script `deploy` in `package.json` will need to be modified to your
mode of deployment. (Note that this script only works on Mac/Linux.) Run the following command:
```
$ npm run-script deploy
```
This will:
- build the app
- export all static files to the `docs` directory
- create `docs/CNAME` with the domain `hack.rice.edu` for GH Pages to recognize a custom domain
- create `docs/.nojekyll` to prevent `_next/...` from being ignored by Github Pages when deployed, and
- stage the project.
You will need to run
```
$ git commit -m "your commit message here"
$ git push
```
in order for changes to be reflected on the hosted Github Pages project.
### Contributors
- Achal Srinivasan ([achalvs](https://github.com/achalvs))