- Clone the repo with
git clone https://github.com/ucsdds3/main-site.git - Open the repo in your preferred code editor (For VSCode, use the command
code main-site) - Run
npm installto install dependencies - Run
npm run devto start the development server
To make contributions to the DS3 Main Site, please follow these guidelines:
- (Infra members with write access can skip this step) Fork the repository to your own GitHub account and clone it.
- Create a new branch for your changes using the command
git checkout -b <branch-name>. - Make your changes and push them to your branch.
- Create a pull request from your branch to the main branch. Write a summary of your changes in the pull request description.
- Once the pull request is merged, you can safely delete your branch using the command
git branch -d <branch-name>.
Stick to the project structure shown below to keep things organized:
main-site/
├── node_modules/ # Installed dependencies
├── public/ # Public assets
├── src/ # Source code files
│ ├── Assets/ # Project assets
│ │ ├── Data/ # Data files
│ │ └── Images/ # Image assets
│ ├── Components/ # General components
│ ├── Hooks/ # Custom hooks
│ ├── Pages/ # Pages
│ │ └── Example/ # Page-specific components
│ ├── Styles/ # Custom styles
│ ├── Utils/ # Utilities
│ │ ├── functions.ts # Utility functions
│ │ └── types.ts # Utility types
Check the depencencies listed below for this project before starting. Use these to your advantage so you don't have to do more work! There are more dependencies that you can find in the package.json file, but these are the ones you should be familiar with.
- Vite - Build Tool ⚡
- React - Frontend Framework ⚛️
- React Router - Routing 🛣️
- Tailwind CSS - CSS Framework 🎨
- React Icons - Icon Library 🖼️
- Daisy UI - Tailwind CSS Component Library 🎯
- Framer Motion - Animation Library ✨