Skip to content

cornellrocketryteam/rocketry-web

Repository files navigation


Logo

Cornell Rocketry Team Website

Table of Contents
  1. About The Project
  2. Getting Started
  3. Updating the website

About The Project

Product Name Screen Shot

Built With

  • Next
  • React
  • Material UI

(back to top)

Getting Started

Prerequisites

Start by installing the required software to be able to run the website.

Installation

  1. Clone the repo
    git clone https://github.com/cornellrocketryteam/rocketry-web
  2. Navigate into the newly cloned repository
    cd rocketry-web
  3. Install NPM packages
    npm install

Usage

  1. Run the development server
    npm run dev
  2. Open http://localhost:3000 with your browser to see the result.

(back to top)

Updating the Website

General

  • When running the development server, any file changes will automatically update on the local website version.
  • Comitting and pushing the code to Github should automatically update the live version of the website.
    • If the live version of the website is not updating, check the Github repo for any potential errors with the commit or the deployment. Example commit Example failed commit

      ☑️ indicates that the build was sucessful and deployed to the live website.

      ❌ indicates that the build failed and did not deploy to the live website.

      Clicking on either of the icons will allow you to view the logs and determine if and why the build failed.

Homepage

The only content that changes on the homepage year to year is the "At a Glance" statistics. These can be manually updated on the homepage file index.js. Using Ctrl + F is an easy way to find where to update the numbers.

Members Page

The members page must be updated whenever there are new members added to the team.

This can be done using the JSON file members.json. Member pictures must be placed in the folder public/static/images/members-page. The picture file names must match with the member's name in the JSON file. Make sure that the JSON file is formatted correctly or the page will not load.

The photos should be cropped to a 3:4 aspect ratio, and they should be compressed or reduced in size so that the file size is smaller and the images will load faster on the website. Cropping to 375 x 500 pixels will match the correct aspect ratio and minimize the file size, but larger images can also be used.

Rockets Page

The rockets page must be updated each year with new rocket information and the year's competition patch.

The information about each year's rocket can be updated through the JSON file rockets.json. When adding a new rocket to the JSON file, the corresponding image of the rocket must also be added to the folder public/static/images/rockets-page/rockets.

Competition patches can be updated by adding the new patch to the folder public/static/images/rockets-page/patches, and the patch will be automatically added on the website.

Sponsors Page

The sponsors page must be updated whenever there are new sponsors or the sponsorship packet has been updated.

Sponsor logos can be updated through the JSON file sponsors.json. When adding a new sponsor logo to the JSON file, the corresponding logo image must also be added to the folder public/static/images/sponsors-page/logos. Logos might have to be edited using Photoshop or some other software to remove the background and to ensure readability. Try to find versions of company logos that will look good on the website, for example some companies have light and dark versions of their logos.

The sponsorship packet can be updated by replacing the file CRT Sponsorship Packet.pdf. Make sure that the same file name is used for the new packet.

FAQ Page

The FAQ page can be updated using the JSON file faq.json.

Apply Page

The apply page must be updated whenever the team is recruiting.

The content on the apply page can be updated through the JSON file apply.json. There are multiple fields in the JSON file that need to be changed each time the team recruits.

  • dayjsFormatString should not be changed.
  • applicationOpen determines whether the application page will show the open or closed version. It should be set to true when recruitment is ongoing and set to false when recruitment is finished.
  • upperclassDueDate, firstYearDueDate, upperclassApplicationLink, and firstYearApplicationLink should be updated to the corresponding dates and links for the current year.
  • timelineData contains all of the events and key dates that will be shown on the apply page's timeline. This includes dates like the application open, information sessions, club fests, and the application due dates. For reference, the file example.json shows a properly formatted json file with all of the necessary information for the timeline.
    • Make sure to include all information sessions and application due dates
    • All timeline dates must be formatted in the format M/D H:mm a where M is the month, D is the day, H is the hour, mm is the minutes, and a is either am or pm. More details about this format can be found here. Reference example.json for properly formatted dates.

(back to top)