With this repo, you can build yourself a beautiful portfolio, blog website. It is fully responsible and functional.
Continue by following the steps. After all of them it'll work for you!
A CMS service (I recommend GraphCMS free version),
A compiler (I recommend Visual Studio Code),
Simple compiler, react.js and next.js information,
Buymeacoffee.com account
First create 3 Schema named Blog
, Project
, Certificates
and Achivements
After that go Blog
schema and create:
- Single line text => Named: Title
- Single line text => Named: Category
- Slug => Named: Slug
- Rich text => Named: Content
- Multi line text => Named: Excerpt
- Asset picker => Named: Featured Image
- Single line text => Named: Tags (Check "Allow multiple values" option)
Go Enumerations and add one Enumeration named
Creators
then add the names of the people who will write the blog later. After that add to Blog schema: - Dropdown => Named: Creator
Then go to Project
schema and create:
- Single line text => Named: Title
- Multi line text => Named: Description
- Asset picker => Named: Image
- Single line text => Named: Source
- Single line text => Named: Demo (for your project' demo link)
Create one more enumeration and name it
PostCategory
then add variables for your project tags, likeGame
,Active
,Simple
. You will add your projects to this headers. After that add to Projects schema: - Dropdown menu => Named: Project Type
- Single line text => Named: Tags (Check "Allow multiple values" option)
Then go to Certificates
schema and create:
- Asset picker => Named: Image
- Single line text => Named: Certificate Name
- Multi line text => Named: Certificate Description
Then go to Achivements
schema and create:
- Single line text => Named: Name
- Single line text => Named: Year
After all of them go Project Settings
> API Access
from left bar and answer the "Would you like us to initialize some defaults?" question by clicking the "Yes, initialize defaults" button. (for GraphCMS service)
I recommend that create some content after this process for see it's running well 😊.
Clone this project,
Download and unzip project to anywhere you want, then open Visual Studio Code and open your folder.
Go to .env.local
file (if you don't have create it) and put your API key there from API Access panel.
After that go to Pages
>index.js
file and edit the section below the comment sections.
Check other .js
files from Pages
section and change them for your informations.
After changes don't forget to commit your data.
Go terminal, type npm run dev
and click enter.
Open your browser and go http://localhost:3000
(the port can be different for you it's 3000 usually).
And see what's working and what's not. If you have to change somewhere you can edit the files from Visual Studio Code.
For deploying, if you are still in developer mode; go to terminal and press CTRL + C
after that press Y
.
Type npm run build
to your terminal and click enter. If everything will go correct, you will see an out
folder in your project.
This folder will contain your base files to deploy your website. Copy them to your hosting or Apache server directly. (I recommend Vercel app for deploying)
That's it! Congratulations you've got your portfolio/blog website. 🎉🎉🎉 Live Demo: https://nextjs-blog-portfolio.vercel.app/
If you have some trouble you can contact me with this telegram link or krsn.emirhan@gmail.com email address.