Skip to content

Latest commit

Β 

History

History
200 lines (135 loc) Β· 5.64 KB

SETUP.md

File metadata and controls

200 lines (135 loc) Β· 5.64 KB

Setting Up HerStack Locally πŸ› οΈ

Never set up a web project before? No worries β€” this guide walks you through every step from scratch. It should take about 10–15 minutes.


What you'll need

Tool What it is How to get it
Node.js Runs JavaScript on your computer nodejs.org β€” download the LTS version
npm Installs project dependencies Comes bundled with Node.js β€” no separate install needed
Git Version control β€” how you save and share code git-scm.com
A code editor Where you'll write code We recommend VS Code β€” it's free
A terminal Where you run commands Already on your computer! On Mac: Terminal app. On Windows: use Git Bash (installed with Git)

Step 1 β€” Install Node.js

  1. Go to nodejs.org
  2. Download the LTS version (the one that says "Recommended for most users")
  3. Run the installer and follow the prompts
  4. To verify it worked, open your terminal and type:
    node --version
    You should see something like v20.11.0. Any version 18+ is fine.

Step 2 β€” Install Git

  1. Go to git-scm.com/downloads
  2. Download and install for your operating system
  3. Verify it worked:
    git --version
    You should see something like git version 2.43.0

Step 3 β€” Fork the repository

Forking means making your own copy of HerStack on GitHub so you can make changes without affecting the main project.

  1. Go to github.com/HerStack-org/website
  2. Click the Fork button in the top right
  3. Click Create fork

You now have a copy at github.com/YOUR_USERNAME/website πŸŽ‰


Step 4 β€” Clone your fork

Cloning means downloading the code to your computer.

  1. On your fork's GitHub page, click the green Code button
  2. Copy the URL shown (looks like https://github.com/YOUR_USERNAME/website.git)
  3. In your terminal, navigate to where you want to put the project:
    # For example, go to your Documents folder
    cd ~/Documents
  4. Clone it:
    git clone https://github.com/YOUR_USERNAME/website.git
  5. Move into the project folder:
    cd website

Step 5 β€” Install dependencies

The project uses libraries written by other people. This command downloads all of them:

npm install

You'll see a lot of text scroll by β€” that's normal. It might take a minute or two.

When it's done, you'll see a node_modules/ folder appear in your project. Don't worry about what's in it.


Step 6 β€” Start the development server

npm run dev

You should see output like:

  VITE v5.0.0  ready in 300ms

  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose

Now open your browser and go to http://localhost:5173

πŸŽ‰ You should see the HerStack website running on your computer!


Step 7 β€” Make a change and see it live

Try it out β€” open any file in VS Code and make a small change. For example, open src/data/mentors.js and change some text. Save the file. Your browser will automatically update β€” no refresh needed. This is called hot reload.


Step 8 β€” Set up the upstream remote (important!)

This connects your fork to the original HerStack repo so you can get future updates:

git remote add upstream https://github.com/herstack/website.git

Verify it worked:

git remote -v

You should see:

origin    https://github.com/YOUR_USERNAME/website.git (fetch)
origin    https://github.com/YOUR_USERNAME/website.git (push)
upstream  https://github.com/herstack/website.git (fetch)
upstream  https://github.com/herstack/website.git (push)

Making your first contribution

Now that it's running, here's the simplest possible contribution to get started:

Option A β€” Add a resource (no React knowledge needed)

  1. Open src/data/resources.js in VS Code
  2. Copy one of the existing resource objects
  3. Fill in a real course you've found helpful
  4. Save β€” check it looks right in the browser
  5. Commit and open a PR (see CONTRIBUTING.md)

Option B β€” Fix a typo

  1. Use Ctrl+Shift+F (or Cmd+Shift+F on Mac) in VS Code to search across all files
  2. Find the typo
  3. Fix it, save, commit, PR

Useful commands

Command What it does
npm run dev Start the local development server
npm run build Build the production version of the site
npm run preview Preview the production build locally

Stopping the dev server

Press Ctrl + C in your terminal.


Common issues

npm install fails Make sure Node.js is properly installed. Try closing and reopening your terminal, then run node --version again.

Port 5173 already in use Another app is using that port. Vite will automatically try the next port (5174) β€” just use that URL instead.

Changes not showing up Hard-refresh your browser with Ctrl+Shift+R (or Cmd+Shift+R on Mac).

Still stuck? Open a GitHub Discussion or email us at hey@herstack.org β€” we're happy to help. No question is too basic.


Next steps

You've got this. πŸ’œ