/portfolio-and-blog

A website to show the blogs written by Admin. It takes blog input in Markdown format and render it in HTML

Primary LanguageJavaScript

For Contributing in Blogs, contact me.

It will be a great journey if you write some blog about the tech you know about

Consider I am creating a blog on managing hooks in react, so my blog file should must follow below criteria

  • filename : managing-hooks-in-react.md
  • Content inside markdown(md) file
    ---
    title: 'Manage hooks in react'
    date: 'May 15, 2021'
    excerpt: 'The most straightforward way of using XState with React is through local component state'
    cover_image: '/images/posts/img8.jpg'
    category: 'JavaScript'
    author: 'Sam Smith'
    author_image: 'https://randomuser.me/api/portraits/men/18.jpg'
    ---
    
    //Your blog with markdown syntax (.md) should go from here
    //For example
    
    ### Managing React Hooks
    Lorem markdownum fine incustoditam unda factura versum occuluere Aeneas, iuvat
    haec praepes [partes epulae](http://cui.com/), in egisse de. Caecisque ter
    manus. Munere in exhalat, ferre sed [habe quaeque saepe](http://ne.org/fretum)
    verba caput ferarum _nubila_? Patriam Cyparisse tamen, **saxum** fide postponere
    pavida ne omnes etiam, atque. Sonuit omina sed sine haerebat illic fit a mora
    in. 
    
    - Unordered list
        - unordered list
    
    1. Ordered List
  • For markdown syntax, visit here

A Blog Website created by me

If you are getting error in running website locally, create a .bablerc file and write the below code

{
    "presets": ["next/babel"]
}
  

and then restart the server

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

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.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.js.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.