A static personal portfolio website to showcase projects, work experiences and blog posts. See it live.
- HTML
- CSS
- JavaScript
- Tailwind CSS
- Parcel
- Cypress
- ESLint
- Prettier
To get started on development, let's install a few prerequisites
- npm
npm install npm@latest -g
- Clone the repo
git clone https://github.com/npranto/personal-portfolio.git
- Checkout branch
v5
git checkout v5
- 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 from remote CMS (Contentful). Refer to Netlify environmental variables for that - (Optional) To keep unit tests running on the background
npm run test:watch
- (Optional) To keep E2E test running on the background
npm run cypress:open
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
v4
branch, i.e.,git checkout -b v4-105
. Note:105
refers to the issue id andv4
is just a prefix, stands for version 4 iteration of personal portfolio - Make code or content changes as necessary. Code changes usually go inside
src
directory while content changes sit inside Contentful. - Before committing all changes:
- Ensure all end-to-end tests are passing w/ Cypress -
npm run cypress:open
. (Note: you may need to runnpm run dev
on the background as well). If needed, add new tests inside cypress for new functionalities or features added. - Ensure all unit tests are passing -
npm run test
. (Note: you may need to runnpm run dev
on the background as well) - To see production preview, create a new production build -
npm run prod
, run preview local server -npm run preview
and open http://localhost:9000/ - Verify all changes are reflected correctly on the preview
- Ensure all end-to-end tests are passing w/ Cypress -
- Commit and push changes to remote origin on the new branch
- Create a pull request from the new branch =>
v4
branch - Create a Netlify preview to see the latest changes in an URL
- kick off
Deploy Branch To Bucket
Github Action workflow - pass in branch name to deploy
- pass in any one of these buckets (
bucket-1
,bucket-2
,bucket-3
,bucket-4
,bucket-5
,qa-1
,qa-2
,qa-3
), - log into Netlify to see if build finished
- once done, visit `https://bucket-1--npranto-dev.netlify.app/ to see preview
- Note, Healthcheck will also get triggered through GitHub Actions workflow
- Verify all changes and merge the pull request
- Ensure that a new version tag has been created in the commit logs, i.e.,
v4.1.3
. This is crucial as it will be used to deploy a specific tag toproduction
during a release at some point in the future - Refer back to the original issue, link the pull request, add assignee, and mark issue as closed