The first iteration of kunalkatiyar.vercel.app built with Nextjs and hosted with Vercel
Without a doubt a portfolio website is a unique way to showcase your work and let others know about yourself. Itβs like an evergreen platform for your projects, case studies, and information about you. However, Why why did i choose Next.js? Because it is a React framework with Server-Side Rendering, which is good for SEO (Good for us if we get found on Google, right?).
Also, Next.js helps us build a full back-end & blazing-fast websites along with benefits such as Image optimization.
Why tailwindcss? Because TailwindCSS is a framework which reduces a lot of styling efforts. It has low level CSS classes that you can directly embed into the HTML code.
Since i integrated some of my project into my website i'll i mention most of technologies & libraries that i used.
- Next.js
- Nodejs
- TypeScript
- Tailwind CSS
- framer-motion
- Google API
- cookie-cutter
- react-leaflet
- Vercel Analytics
Yes, you can fork this repo. Please give me proper credit by linking back to kunalkatiyar.vercel.app. Thanks!
-
Clone the repo CLI
git clone https://github.com/KunalKatiyar/portfolio-latest
-
Install and use the correct version of Node using NVM
nvm install
-
Install dependencies
yarn
-
(OPTIONAL) : Add .env file to the root project
touch .env
- (OPTIONAL) : Add your Google API key inside .env file.
not Adding Google API to the project will cause not returning the correct zip code, it might be always "00000"
NEXT_PUBLIC_KEY_GOOGLE_API="your API key"
-
Start the development server
yarn dev
-
Generate a full static production build
yarn build
-
Preview the site as it will appear once deployed
yarn run serve
the following endpoint will return a json object contains a bunch of information about the ip address
/api/userInfoByIP/[IP-Address]
example :
/api/userInfoByIP/159.89.173.104
{"zip":"560002","country":"India","countryCode":"IN","region":"KA","regionName":"Karnataka","city":"Bengaluru","datetime":"9/6/2022, 1:24:30 AM","lat":12.9634,"lon":77.5855,"timezone":"Asia/Kolkata","isp":"DigitalOcean, LLC","org":"Digital Ocean","as":"AS14061 DigitalOcean, LLC","query":"159.89.173.104"}
the following endpoint will return a json object contains the zip code for the latitude and logitude
"/api/userInfoByLatLon/" + lat + "/" + lon
example :
/api/userInfoByIP/159.89.173.104
{"zipcode" : "56998"}
the Response below is returned if the lat and long provided has no zip code in Google maps, like lat & long in positioned in the ocean :
{"zipcode" : "00000"}
the following endpoint will return a json object contains "quote" and "author", for SpeedTyping project i displayed only the quote, minLength is considered as the minimum of characters.
/api/typing/[minLength]
- minLength should be between 10 - 300.
- the returned quote is a chain of
- i costumized the original Endpoint using The API Route of Nextjs, here is the Original Endpoint.
https://api.quotable.io/random?minLength=[minLength]
Color | Hex |
---|---|
Navy | #0a192f |
Light Navy | #112240 |
Lightest Navy | #233554 |
Slate | #8892b0 |
Light Slate | #a8b2d1 |
Lightest Slate | #ccd6f6 |
White | #e6f1ff |
Green | #64ffda |
MIT License
Copyright (c) [2022] [Kunal Katiyar]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- Linkedin - @kunal-katiyar-9106b712b
- Website - Kunal Katiyar