Coder Social home page Coder Social logo

aydinsoyemre / personal-blog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from akadir/personal-blog

0.0 0.0 0.0 8.51 MB

๐Ÿš€ My personal blog made with Tailwind CSS and NextJS. Template from Timlrx. Feel free to fork, follow and use.

Home Page: https://musing.vercel.app/

License: MIT License

Shell 0.02% JavaScript 69.02% CSS 2.01% TeX 0.16% HTML 28.79%

personal-blog's Introduction

Logo

Personal Blog - Mere Musings

This is my personal portfolio blog hosted here built with Next.js, Tailwind CSS and hosted with Vercel.

The original template is designed by Timothy Lin and can be found here. The demo for the same can be found here.

View Demo Report Bug Request Feature Fork

demo

Next JS Vercel TailwindCSS Node.js TypeScript Prisma

๐Ÿ›  Installation & Set Up

  1. Clone this repository

    gh repo fork repository --clone=true
  2. Change directories

    cd blog
  3. Install and use the correct version of Node using NVM

    nvm install
  4. Install dependencies

    npm install
  5. Start the development server

    npm start
  6. Create a .env.local and following the .env.example input some environment variables so that can run normally.

    NEXT_PUBLIC_GISCUS_REPO=
    NEXT_PUBLIC_GISCUS_REPOSITORY_ID=
    NEXT_PUBLIC_GISCUS_CATEGORY=
    NEXT_PUBLIC_GISCUS_CATEGORY_ID=
    EMAILOCTOPUS_API_URL=
    EMAILOCTOPUS_API_KEY=
    EMAILOCTOPUS_LIST_ID=
    DATABASE_URL=
    OAUTH_CLIENT_KEY=
    OAUTH_CLIENT_SECRET=
    NEXTAUTH_URL=
    SECRET=
    TWITTER_API_KEY=
    TWITTER_BEARER_TOKEN=
    SPOTIFY_CLIENT_ID =
    SPOTIFY_CLIENT_SECRET =
    SPOTIFY_REFRESH_TOKEN =

๐Ÿ—๏ธ Building and Running for Production

  1. Generate a full static production build

    npm run dev
  2. Preview the site as it will appear once deployed

    npm run serve

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.

๐Ÿ‘จโ€๐ŸŽจ๏ธ Customization

  1. Personalize siteMetadata.js (site related information)
  2. Modify the content security policy in next.config.js if you want to use any analytics provider or a commenting solution other than giscus.
  3. Personalize authors/default.md (main author)
  4. Modify projectsData.js
  5. Modify headerNavLinks.js to customize navigation links
  6. Add blog posts

๐Ÿ“ Files to customize

  • data/siteMetadata.js - contains most of the site related information which should be modified for a user's need.

  • data/authors/default.md - default author information (required). Additional authors can be added as files in data/authors.

  • data/projectsData.js - data used to generate styled card on the projects page.

  • data/headerNavLinks.js - navigation links.

  • data/logo.svg - replace with your own logo.

  • data/blog - replace with your own blog posts.

  • public/static - store assets such as images and favicons.

  • tailwind.config.js and css/tailwind.css - contain the tailwind stylesheet which can be modified to change the overall look and feel of the site.

  • css/prism.css - controls the styles associated with the code blocks. Feel free to customize it and use your preferred prismjs theme e.g. prism themes.

  • components/social-icons - to add other icons, simply copy an svg file from Simple Icons and map them in index.js. Other icons use heroicons.

  • components/MDXComponents.js - pass your own JSX code or React component by specifying it over here. You can then call them directly in the .mdx or .md file. By default, a custom link and image component is passed.

  • layouts - main templates used in pages.

  • pages - pages to route to. Read the Next.js documentation for more information.

  • next.config.js - configuration related to Next.js. You need to adapt the Content Security Policy if you want to load scripts, images etc. from other domains.

๐Ÿ”จ Compose

Run node ./scripts/compose.js to bootstrap a new post.

Follow the interactive prompt to generate a post with pre-filled front matter.

๐Ÿ“š Tech Stack

Tool Link
Framework Next.js
ORM Prisma
Database PlanetScale
Authentication NextAuth.js
Deployment Vercel
Styling Tailwindcss
Comment Tailwindcss
Newsletter Email Octopus
Favicon realfavicongenerator
Content MDX

๐Ÿ“ˆ Stats

Featured on tech-blogs.dev PRs Welcome

๐Ÿชœ Project structure

๐Ÿ“ฆ root
โ”œโ”€โ”€ ๐Ÿ—‚๏ธ components             # React files to customize the components for the site
โ”œโ”€โ”€ ๐Ÿ—‚๏ธ css                    # Tailwind and Prisma CSS files
โ”œโ”€โ”€ ๐Ÿ—‚๏ธ data                   # Files to change the content of pages
โ”‚ โ”œโ”€โ”€ ๐Ÿ—‚๏ธ authors              # Markdown files for authors of blog
โ”‚ โ”œโ”€โ”€ ๐Ÿ—‚๏ธ blog                 # Markdown files for blog posts
โ”‚ โ””โ”€โ”€ ๐Ÿ—‚๏ธ snippets             # Markdown files for code snippets
โ”œโ”€โ”€ ๐Ÿ—‚๏ธ layouts                # Templates for pages
โ”œโ”€โ”€ ๐Ÿ—‚๏ธ lib                    # Non-react modules
โ”œโ”€โ”€ ๐Ÿ—‚๏ธ pages                  # Page files for website
โ”œโ”€โ”€ ๐Ÿ—‚๏ธ public                 # Static files for images, rss, and assets
โ”‚ โ”œโ”€โ”€ ๐Ÿ—‚๏ธ static               # Holds images, favicons, and other assets
โ”‚ โ”‚ โ”œโ”€โ”€ ๐Ÿ—‚๏ธ favicon            # Favicon files
โ”‚ โ”‚ โ””โ”€โ”€ ๐Ÿ—‚๏ธ images             # Image Files
โ”‚ โ”œโ”€โ”€ ๐Ÿ“ feed.xml             # RSS feed
โ”‚ โ”œโ”€โ”€ ๐Ÿ“ robots.txt           # Helps crawlers to crawl your site
โ”‚ โ””โ”€โ”€ ๐Ÿ“ sitemap.xml          # Sitemap
โ”œโ”€โ”€ ๐Ÿ—‚๏ธ scripts                # Scripts to run for different tasks
โ”œโ”€โ”€ ๐Ÿ“ tailwind.config.js     # Contains tailwind stylesheet to change the look
โ””โ”€โ”€ ๐Ÿ“ next.config.js         # configuration related to Next.js

๐Ÿ“Š Google Lighthouse Performance Metrics

Google Lighthouse Performance Metrics

๐Ÿš€ Deploy

Vercel
The easiest way to deploy the template is to use the Vercel Platform from the creators of Next.js. Check out the Next.js deployment documentation for more details.

Deploy with Vercel

๐Ÿฐ Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project

  2. Commit your Changes

    git commit -m 'Add some Feature'
  3. Push to the Branch

    git push origin main
  4. Open a Pull Request

PRs Welcome

personal-blog's People

Contributors

dependabot[bot] avatar pycoder2000 avatar

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.