/my-site-cms

🌞Server Side React with NextJS & Contentful SDK

Primary LanguageJavaScript

my-site-cms

This application is what powers sandeepincode.com, it uses server side rendering and the contentful api.

How to run:

  1. Fill in the credentials in server.js, it asks for SPACE_ID and the ACCESS_TOKEN which are found once you create a space in contentful.
  2. Content models:
  • name: about,
    content type ID: home
    fields[ Text(long text): description ]

  • name: Blog
    content type ID: blog
    fields[ Text(short text): Title, Date&Time: Date, Integer: Ranking, Text(Long Text): Content, Text(Short Text): description ]

  • name: Github
    content type ID: github
    fields[ Text(short text): name, Text(long text): description, Text(short text): url, Date&Time: date ]

  • name: Projects
    content type ID: projects
    fields[ Text(short text): name, Text(short text): url, Text(long text): description, Date&Time: started]

  1. Make some content in the content tab in contentful.
  2. npm i
  3. npm run dev

Preview

Alt text


Regards, Sandeepincode.