Skip to content

hack-rice/hack-rice-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

901 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HackRice

🚀 This site is deployed at hack.rice.edu.

About

This app is built using Next.js and Rebass. The following assumes you have npm 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.

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

About

The home of HackRice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 20