Code Monkey home page Code Monkey logo

abdulrahman.id's Introduction


⚡ abdulrahman.id

I've decided to open-source my latest portfolio website! it has dynamic content management to add projects and posts using Contentful CMS, and was built using Next.js and Chakra UI.

Refer to Next.js and Chakra UI documentation to learn more.

Feel free to fork this repository to make your own portfolio, and if you liked the repo, kindly support it by giving it a star ⭐!

🛠 Get started

Getting the API Keys

Create an .env.local and follow the variable name based on .env.example and get the API Keys based on the steps below

Contentful API Keys


1. Create a Contentful account
2. Add a Community Space (It's free!)
3. Choose "I create content"
4. Go to content model and start to add content type

📌 In this portfolio website, it has 5 Content type which is:

1. BlogPosts
After the ⚡2.0.0 update, I use Github Issues as blog content!
More details about this on: https://abdulrahman.id/blog/unleash-your-dev-blog-write-more-with-github-issues-as-your-cms

  1. FeaturedProjects
  2. Projects
  3. Introduction
  4. ContactMe

You must add this exact name since it's the ID that's used in the code.

  1. Add the content type according to these fields:
    image

  2. Go to settings -> API Keys -> Content Delivery / Preview tokens -> "Your space name" copy the Space ID and Content Delivery API access token

  3. Put it into the environment variables according to .env.example and you're all set!

Firebase API Keys


1. Create a Firebase project
2. After setting things up you'll get the API keys, save those.
3. Go to Firestore Database
4. Add a collection named views
5. Then, put those API Keys before according to the .env.example and that's it!

Google Analytics API Keys


1. Create a Google Analytics account, in the property settings part, don't forget to turn on Universal Analytics
2. After that, you'll see a code starting with UA-
3. Copy those code and put it into environment variables according to env.example and done!

Starting the Project

Install the dependencies with npm i or yarn
Start the project by npm run dev or yarn dev

Deployment

You can deploy easily by using Vercel 🎉

Deploy with Vercel

📌 Overview

pages/index.js = Homepage
pages/projects/index.js = Projects archive page
pages/blog/index.js = Blog listings page
pages/blog/[slug].js = Blog post page
pages/api/views = API to fetch blog post views from Firebase

⚙ Tech Stack

  • Next.js
  • Chakra UI
  • Contentful CMS
  • MDX (next-mdx-remote)
  • Firebase
  • Google Analytics (react-ga)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.