serviceworker is build using https://www.pwabuilder.com/
The hosted version of this repository is live at http://devanshusanghani.me
- Clone the repository using
git clone https://github.com/devanshusanghani/portfolio.git
cd
into the cloned repository and runyarn
. This will install all the dependencies required for the project.- Run the server using
yarn start
. - Create your own portfolio by editing the
profileData.json
present in thesrc
directory. - Place your image in
Assets
directory present insidesrc
directory. Make sure to rename it toprofile.jpg
or else you can edit the filename inimport
statement ofSidebar.js
Component.
- Go to your project's root directory.
- Initial it by typing
git init
. - Create an empty repository with name
githubusername.github.io
(replace githubusername with your githubusername) or any other name. - Copy the git link for your repo and add it to your local git repo as follows :
git remote add origin <git link>
. - If you are using custom domain then create a file with name CNAME in the root of your directory and add your domain name to it, in the format domain.com and save it.
- Add 2 scripts predeploy and deploy to your scripts in package.json as follows :
"predeploy": "yarn run build",
"deploy": "gh-pages -d build"
- Both the scripts should be inside the
scripts
key ofpackage.json
. - Also create
.env
file and setPUBLIC_URL=yourcustomdomain.com
and place it in the root folder. - Run
yarn run deploy
this will deply your site to yourcustomdomain.com. - Push your code to master by doing the following steps:
git add -A
git commit -m "Push portfolio code"
git push origin master
This project was bootstrapped with Create React App.
The Bootstrap template used in this tutorial is https://github.com/BlackrockDigital/startbootstrap-resume
Follow the medium link for additinal info : https://levelup.gitconnected.com/create-a-portfolio-using-react-and-github-student-developer-pack-955379207855