Skip to content

agar1162/OEVP

Repository files navigation

OEVP Website

A student-led platform for the Office of the Executive Vice President (OEVP) at UC Berkeley.
This site serves as a hub for student resources, department initiatives, events, and organizational partnerships.

Next.js TailwindCSS Deployed On License

πŸ“… Latest update in this design doc: Sat Mar 29 2025 12:35 AM PT

1. Environment Setup

1.1. Initial Setup

1.1.1. Install Node.js and npm:

Ensure you have npm installed on your local machine.

1.1.2. Clone the Repository on your local machine:

In your terminal on your local machine, run:

git clone <repo-url>

1.1.3. Recommended IDE: Visual Studio Code (VSCode)

We suggest using VSCode for a smoother development experience.\

1.1.3.1. Option A (Local Development):

After cloning the repository, make any updates locally. Once changes are ready, follow the deployment steps in Section 1.3.1.

1.1.3.2. Option B (SSH Access via IDE):

You can also work via SSH within your IDE (detailed steps to be added later β€” in the meantime, research via Google or contact the current developer: Truc β€” tructran@berkeley.edu).

1.1.3.3. Need Help?

For setup issues or additional configuration, please reach out to the current maintainer: Truc β€” tructran@berkeley.edu.

1.2. Running the Site Locally

⚠️ These instructions assume you’re on macOS. For Windows or Linux, please consult equivalent platform-specific guides.

1.2.1. Open your terminal on your local machine and navigate to the project directory (assumed to be ~/OEVP):

cd OEVP
npm run dev

1.2.2. To stop the development server, press:

  • Cmd + C on macOS
  • Ctrl + C on Windows/Linux

1.3. Updating Site (aka Deploying Updates)

1.3.1. If You Made Changes Locally

1.3.1.1. In the terminal on your local machine:

Run:

npm run deploy
ssh username@ssh.ocf.berkeley.edu

1.3.1.2. When prompted:

Enter the password (refer to the internal credentials doc).

1.3.1.3. Once connected to the OCF server via SSH:

Run the deployment script (aka the update_evp.sh file):

./update_evp.sh

1.3.2. If You Made Changes Directly in SSH (⚠️ Not Recommended, does not work)

⚠️ Note: Direct development in SSH is not recommended, as npm is not available in the OCF environment. This could lead to deployment issues because npm run deploy is skipped.

1.3.2.1. If you must push changes made through SSH:

Assume you have been editing code via ssh on your IDE, follow those steps:
Navigate to the repo directory: Assume you are in home directory (~/), run:

cd OEVP

(optionally, you should run: git status to review your changes then continue)
Stage and commit your changes:

// To stage all changes:
    // if you are aware of all the changes, run this command below and it will add all changed files:
git add .
// Recommended: stage individual files explicitly:
    // but this is a better and safer practice, for example if we need to add 2 changed files:
git add path/to/file1 path/to/file2
// Commit and push:
git commit -m "Add a meaningful commit message here"
git push origin main

2. Front End File Routing Structure

Original:

└── πŸ“src
    └── πŸ“app
        └── πŸ“departments 
            └── πŸ“commercial-activities
                └── page.js
            └── πŸ“communications
                └── page.js
            └── πŸ“components
                └── Cover.js
                └── FAQ.js
                └── InstaPostEmbed.js
                └── InstaReelEmbed.js
            └── πŸ“deib
                └── page.js
            └── πŸ“finance
                └── page.js
            └── πŸ“legal-affairs
                └── page.js
            └── πŸ“rso
                └── page.js
            └── πŸ“spaces
                └── page.js
            └── πŸ“sswb
                └── page.js
            └── πŸ“student-affairs
                └── page.js
        └── πŸ“office
            └── πŸ“2024
                └── πŸ“components
                └── page.js
        └── page.js 
        └── πŸ“partnerships
            └── page.js
        └── πŸ“resources
            └── page.js
    └── πŸ“components
        └── πŸ“home
            └── Footer.js
            └── Navbar.js

Updated Apr 13 2025:

πŸ“ src
β”œβ”€β”€ πŸ“ app
β”‚   β”œβ”€β”€ πŸ“ departments
β”‚   β”‚   β”œβ”€β”€ πŸ“ 2024
β”‚   β”‚   β”‚   β”œβ”€β”€ πŸ“ commercial-activities
β”‚   β”‚   β”‚   β”‚   └── page.js
β”‚   β”‚   β”‚   β”œβ”€β”€ πŸ“ communications
β”‚   β”‚   β”‚   β”‚   └── page.js
β”‚   β”‚   β”‚   β”œβ”€β”€ πŸ“ deib
β”‚   β”‚   β”‚   β”‚   └── page.js
β”‚   β”‚   β”‚   β”œβ”€β”€ πŸ“ finance
β”‚   β”‚   β”‚   β”‚   └── page.js
β”‚   β”‚   β”‚   β”œβ”€β”€ πŸ“ legal-affairs
β”‚   β”‚   β”‚   β”‚   └── page.js
β”‚   β”‚   β”‚   β”œβ”€β”€ πŸ“ rso
β”‚   β”‚   β”‚   β”‚   └── page.js
β”‚   β”‚   β”‚   β”œβ”€β”€ πŸ“ spaces
β”‚   β”‚   β”‚   β”‚   └── page.js
β”‚   β”‚   β”‚   β”œβ”€β”€ πŸ“ sswb
β”‚   β”‚   β”‚   β”‚   └── page.js
β”‚   β”‚   β”‚   β”œβ”€β”€ πŸ“ student-affairs
β”‚   β”‚   β”‚   β”‚   └── page.js
β”‚   β”‚   β”‚   β”œβ”€β”€ πŸ“ components
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ Cover.js
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ FAQ.js
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ InstaPostEmbed.js
β”‚   β”‚   β”‚   β”‚   └── InstaReelEmbed.js
β”‚   β”‚   β”‚   └── πŸ“„ page.js
β”‚   β”‚   └── πŸ“„ page.js                # πŸ”Ή Departments landing page (shows latest term)
β”‚
β”‚   β”œβ”€β”€ πŸ“ office
β”‚   β”‚   β”œβ”€β”€ πŸ“ 2024
β”‚       β”‚   └── πŸ“„ page.js
β”‚       β””β”€β”€πŸ“„ page.js               # πŸ”Ή Office landing page (shows latest term)
β”‚   
β”‚   β”œβ”€β”€ πŸ“ partnerships
β”‚   β”‚   └── πŸ“„ page.js
β”‚   
β”‚
β”‚   β”œβ”€β”€ πŸ“ resources                  
β”‚   β”‚   └── πŸ“„ page.js
β”‚
β”‚   └── πŸ“„ page.js                   # πŸ”Ή Homepage
β”‚
β”œβ”€β”€ πŸ“ components
β”‚   └── πŸ“ home
β”‚       β”œβ”€β”€ Footer.js
β”‚       └── Navbar.js

About

OEVP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •