Giter Site home page Giter Site logo

james-langridge / nextjs-contentful-marketing-blog Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.89 MB

A statically generated marketing & blog site made with Next.js 13 and Contentful.

Home Page: https://www.fitforlifetrainer.co.uk/

License: MIT License

TypeScript 95.94% CSS 0.52% JavaScript 3.54%
contentful nextjs react tailwindcss ssg typescript vercel

nextjs-contentful-marketing-blog's Introduction

A statically generated marketing & blog site made with Contentful and the Next.js 13 beta features like the App Router and React Server Components.

About The Project

The content manager has complete flexibility to create new pages in Contentful, which are rendered as dynamic route segments, and statically generated at build time (Static Site Generation).

The site also includes a blog page and a contact form page.

Features

Run it locally

Prerequisites

  • You will need a Contentful account.
  • You will need a Gmail account to work with nodemailer for the contact form. See the nodemailer docs.

Installation

  1. Clone the repo

    git clone https://github.com/james-langridge/nextjs-contentful-marketing-blog.git
  2. Install NPM packages

    npm install
  3. Copy .env.example to .env.local and update the variables.

    cp .env.example .env.local
  4. Import the content types into your Contentful space with the Contentful CLI. This only imports the content types that correspond with the React components. You will have to create pages and add content and assets in Contentful.

    npm install -g contentful-cli
    contenful login
    contentful space import --content-file ./lib/export.json
  5. Start the development server:

    npm run dev

Deploy your own

You can clone and deploy this project on Vercel using the button below, provided you have completed the prerequisites above (email, Contentful CMS).

Deploy with Vercel

See the Next.js deployment documentation for more details.

License

Distributed under the MIT License.

nextjs-contentful-marketing-blog's People

Contributors

james-langridge avatar

Watchers

 avatar  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.