Welcome to the TUDev Workshop on building and deploying your very own portfolio website! 🎉 This workshop will guide you through creating a customizable portfolio website and deploying it to Netlify.
This project is a template designed to make it easy for you to showcase yourself and skills online. All you need to do is update the provided resumeData.json
file with your information, and your site will be ready to go!
- HTML & SCSS: For the structure and styling of the website.
- JavaScript: For interactivity.
- npm: To manage dependencies and run build tasks.
- Netlify: To host and deploy your site.
- Open PowerShell as Administrator and run:
# Install Chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# Install Required Tools
choco install nodejs git vscode -y
- Open Terminal and run:
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install Required Tools
brew install node git
brew install --cask visual-studio-code
- Open Terminal and run:
# Update package manager
sudo apt update && sudo apt upgrade
# Install Node.js
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs
# Install Git
sudo apt-get install git
# Install VS Code
sudo apt-get install wget gpg
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
rm -f packages.microsoft.gpg
sudo apt update
sudo apt install code
Run these commands to verify everything is installed correctly:
node --version
npm --version
git --version
code --version
-
Clone the Repository
git clone https://github.com/WebsiteHTMLWorkshop.git cd WebsiteHTMLWorkshop
-
Install Dependencies Run the following command to install required npm packages:
npm install
-
Update Your Info Open the
resumeData.json
file and update it with your details:{ "basics": { "name": "Your Name", "role": "Your Role", "location": "Your Location", "email": "your.email@example.com", "phone": "+1 (XXX) XXX-XXXX" } }
-
Run the Project Locally Use the following command to start the development server:
npm start
Open http://localhost:3000 in your browser to see your website.
-
Build for Production To generate the optimized files for deployment, run:
npm run build
Your site will be ready in the
dist/
folder. -
Deploy to Netlify We will cover this step during the workshop
Below are the key npm scripts you can use:
npm run start
: Starts a local development server with live reloading.npm run build
: Builds the website for production.npm run clean
: Cleans the dist/ folder.npm run imagemin
: Optimizes images for faster loading.npm run scss
: Compiles and minifies SCSS files.
- Customize your site by editing
index.html
or styling withcss/style.scss
. - For advanced changes, update other files in the repository as needed.
- If you get permissions errors, make sure you're running PowerShell as Administrator
- If Chocolatey commands fail, try refreshing your PowerShell session
- If Homebrew commands fail, try running
brew doctor
- Make sure your system PATH includes Homebrew's bin directory
- If apt commands fail, try running
sudo apt update
first - For VS Code, you might need to restart your system after installation
This project was created as part of a collaboration with TUDev & ACM. Special thanks to David Loder for developing the workshop materials.
The assets and frameworks are brought to you by the following:
- Netlify
- W3 Schools
Feel free to reach out to the club with any questions.
Happy coding! 🎨✨