Sliders Installation Guide
Quick Summary
- Clone the repo: Sliders GitHub page
- Start the site:
npm run dev
- Video Guide
What You Need
- A computer with MacOS / Windows
- Basic familiarity with the Terminal app
Step 1: Software Requirements
- Install Node.js: Go to Node.js Downloads and choose the installer for MacOS/Windows. Follow the prompts to install.
- Install Git: Go to Git Downloads and choose the installer for MacOS/Windows. Follow the prompts to install.
- Install Visual Studio Code: Go to VS Code Downloads and choose the installer for MacOS/Windows. Follow the prompts to install.
- Check Installation: Open Terminal and type
node -v
, thennpm -v
, and finallygit -v
. If you see version numbers (like v18.0.1), you’re set! If not, the installation might need a do-over.
Step 2: Get the Project Files
Choose one of the following methods based on your access and preference:
Option A: GitHub WorkSpaces Clone (if you have access)
- Visit the Sliders GitHub page
- Navigate to the URL. Replace “github.com” with “github.dev”
- Navigate to the terminal. If the terminal does not appear, click the search bar at the top and type “>Terminal”.
- Once there, click “Continue Working in New Local Clone”. This will open the app inside Visual Studio Code.
- Save the project files on your computer at any destination.
Option B: GitHub HTML Clone (if you have access)
-
Visit the Sliders GitHub page
-
Use the green “Code” button to find the SSH option and copy the link provided, i.e.
https://github.com/Columbia-DESDR/Sliders.git
-
In Terminal, navigate to where you want the project. E.g.:
Terminal window cd ~/Desktopmkdir sliderscd sliders -
Clone:
Terminal window git clone https://github.com/Columbia-DESDR/Sliders.git -
Optional: Switch branches with
git checkout [branch-name]
if needed.
Step 3: Launch Your Website
-
Open Terminal and navigate to the project folder.
E.g.cd ~/Desktop/sliders/Sliders
or wherever you placed it. -
Install dependencies:
Terminal window npm install -
Start the site:
Terminal window npm run dev -
Terminal will give you a local URL (like
http://localhost:xxxx/
). Paste it in your browser to see your site live!