Creating Portfolio
Name | NUID |
---|---|
Naresh Agrawal | 001054600 |
- React
- GitHub API
- GitHub pages
- React
- npm
-
Clone the repository
https://github.com/nareshagrawal/nareshagrawal.github.io.git
-
Open in editor and edit src/editable-stuff/config.js file.
-
Add your resume as <resume.pdf> in place of src/editable-stuff/resume.pdf
-
Edit title and meta description in public/index.html.
-
Change URL in package.json file:
"homepage": "https://<github-username>.github.io/"
-
After editing run the following bash commands to run website locally:
$ npm install $ npm start
-
To deploy website:
- Create repository of name <github-username>.github.io
- Copy source code to <github-username>.github.io repository
$ npm run build $ npm run deploy
Or for deployment at <github-username>.github.io, refer pages.js
-
Congrats your site is up and running. To see it live, visit:
https://<github-username>.github.io/home
-
To change the thumbnail image:
- Navigate to the "public" folder.
- There you will see "social-image.png".
- Delete it.
- Take a screenshot of your version and rename it "social-image.png" and place it there.
Next time if you make changes, repeat from step 6.