Hi there! Welcome to SHPE UF's first SHPortfolio event. To get started please do the following:
-
Follow the instructions here to download VSCode. VSCode is the text editor we will be coding on!
-
Create a Github account if you do not have one here!
-
Download Git to your computer from here and set your username & email in the terminal like so:
-
Download Node. This tool will allow us to download online resources that our website can use.
-
Download the zip file of this repository and unzip it.
-
Open VSCode and open this repository folder.
With our tools installed (Node, Git, and VSCode), we can now run our program! Open the terminal and write the following two commands:
This command installs all supporting packages that our repository needs to use to operate.
This command runs the app in the development mode. You can openhttp://localhost:3000 to view it in your browser.
The page will reload as you make changes.
To understand the files you need to change, you need to understand the structure of our website:
Our website is split into 4 sections: About me, Experience, Leadership, and Contact.
The code for each section is located in our src/sections
folder.
For the sake of our 1st workshop, you do not need to make changes to these files.
Assets are all types of media that our website uses. This can range from images to videos to resume pdfs.
You can access the assets folder in public/assets
.
For your website you need to add the following media files:
- For each experience and leadership position you wish to display, add the company/group's image/logo to
public/assets/experiences
. - For each Project you wish to display, add a descriptive logo/image to
public/assets/projects
. - Add your resume and profile image to
public/assets
.
To further structure our information, we have shifted all of our data to exist in JSON files within src/json-data
.
JSON stands for JavaScript Object Notation and is a text-based way to present data, that is simple to parse for both humans and machines.
We have divided each section into their own respective JSON files. Upon making changes in your json files, you should see updates in your website. Please follow the format of the current images and replace the final parts with yours. For example:
If your profile image is called John.png
, replace assets/tito.jpg
with assets/John.png
. Capitalization matters!
To update your information, do the following:
- Update the
aboutme.json
insrc/json-data
to update your about me section with your name, description, image, and more. - Update the
experience.json
insrc/json-data
to update your experiences section with their respective description and images. - Update the
leadership.json
insrc/json-data
to update your leadership experience section with their respective description and images. - Update the
projects.json
insrc/json-data
to update your projects section with their respective description and images. - Update the
contact.json
insrc/json-data
to update your contact section with your number, email, and linkedin.
If you would like to change your portfolio's colors, check out tailwind.config.js
and you may use this website to find new colors! https://htmlcolorcodes.com
Once you have updated your information, we can push our code to a github repo and deploy it on Github Pages!
Follow these steps to create a new repository:
- Go to your Github page
- Click "+" -> "New Repository"
- Title your repository name what you'd like you'd like it to be called. Ex: "your username" or "portfolio"
- Make sure the repository is public
- Click "Create Repository" at the bottom!
- In your terminal, run:
npm install gh-pages --save-dev
- Inside your
package.json
, add this to the top with your username and repo name:
"homepage": "https://{username}.github.io/{repo-name}"
Ex:"homepage": "https://yairtemkin.github.io/shportfolio"
- Inside your
package.json
, inside"scripts"
add these two lines:
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
Run the following commands in your terminal:
git init
git add .
git commit -m "Commit with my updated information"
git branch -M main
git remote add origin <link-to-your-repository>
git push -u origin main
npm run deploy
- Go to your Github Repository
- Click Settings
- Go to "Code and Automation" -> "Pages"
- Configure the "Build and deployment" setting to have:
- Source:
Deploy from a Branch
- Branch:
gh-pages
, Folder:/ (root)
- Click "save"!