A static personal portfolio website to showcase projects, work experiences and blog posts. See it live.
- HTML/CSS
- JavaScript
- React.js
- Next.js (Pages Router)
- Tailwind CSS
- ESLint
- Prettier
To get started on development, let's install a few prerequisites
- Node (v.22.x.x or above)
- NPM
npm install npm@latest -g
- Clone the repo
git clone https://github.com/npranto/personal-portfolio.git
- Checkout branch
v5
git checkout main
- Install NPM packages
npm install
- Start up local development server
Note: You will need to setup a
npm run dev
.env
file with a few environmental variables to fetch contents as blog and video posts via web scraping. Refer to.env.example
file for all the environment examples in the root
Follow the list of procedures below to start contributing or make updates to portfolio
- Create a new issue on the issue board
- Create a new branch from
main
branch, i.e.,git checkout -b pp-105
. Note:105
refers to the issue id andpp
is just a prefix, stands for personal-portfolio - Make code or content changes as necessary. Code changes usually go inside
src
directory. All content changes go insidesrc/content
directory as all content is stored in JSON files divided by sections. - Before committing all changes:
- Ensure formatting and linting passes via the following 2 commands:
npm run format
npm run lint
- You may also want to run
npm run dev
and ensure all code or content changes reflect correctly in local development. - To see production preview, create a new production build -
npm run build
, run preview local server -npm start
and open http://localhost:3000/. - Verify all changes are reflected correctly on the preview environment as well.
- Ensure formatting and linting passes via the following 2 commands:
- Commit and push changes to remote origin on the new branch.
- Create a pull request from the new branch =>
main
branch - After creating a new pull request to merge to the main branch, you will notice a preview / demo URL will pop up after Netlify preview deployment gets kicked off
- Once the preview URL is available, open it up and ensure all of your changes are reflecting correctly
- Once changes are verified, merge in the changes and shortly after you should see your changes up on the production site - npranto.dev.
- Check to ensure that a new patch, minor or major version is bumped on the
package.json
file and note that a new tag will be created based on the semver version as well. - Note(s): In case you run into issues where the preview URL is not available or log into Netlify to see if build finished or failed. You may need to debug and fix the build issue in this case, but in most cases, this is very unlikely to occur.
- Refer back to the original issue, link the pull request, add assignee, and mark issue as closed