Website Development on Contentful CMS

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.
Development and maintenance of all types of websites:
Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:
Development stages
Latest works
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1161
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1041
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    822
  • image_crm_chasseurs_493_0.webp
    CRM development for Chasseurs
    847
  • image_website-sbh_0.png
    Website development for SBH Partners
    999
  • image_website-_0.png
    Website development for Red Pear
    451

Website Development with Contentful CMS

Contentful is one of the first and most mature headless CMS on the market. Fully SaaS: content storage, CDN, APIs in Contentful cloud. Content model created via GUI or API. REST API (Content Delivery API, Content Management API) and GraphQL out of the box.

Architecture

Contentful Studio (Web)
         ↕ CMA (Content Management API)
  Content Lake (Contentful)
         ↕ CDA (Content Delivery API) / GraphQL
Next.js / Nuxt / Remix / Mobile App
         ↕ Contentful Image API (CDN)

Installation

npm install contentful
// lib/contentful.ts
import { createClient } from 'contentful'

export const contentfulClient = createClient({
  space: process.env.CONTENTFUL_SPACE_ID!,
  accessToken: process.env.CONTENTFUL_ACCESS_TOKEN!,
  environment: 'master',
})

Next.js Integration

// app/blog/[slug]/page.tsx
import { contentfulClient } from '@/lib/contentful'
import { documentToReactComponents } from '@contentful/rich-text-react-renderer'
import { notFound } from 'next/navigation'

export default async function BlogPostPage({ params }: { params: { slug: string } }) {
  const entries = await contentfulClient.getEntries({
    content_type: 'blogPost',
    'fields.slug': params.slug,
    limit: 1,
  })

  const post = entries.items[0]
  if (!post) notFound()

  return (
    <article>
      <h1>{post.fields.title}</h1>
      <div>{documentToReactComponents(post.fields.content)}</div>
    </article>
  )
}

export async function generateStaticParams() {
  const entries = await contentfulClient.getEntries({
    content_type: 'blogPost',
    select: ['fields.slug'],
    limit: 1000,
  })
  return entries.items.map(entry => ({ slug: entry.fields.slug }))
}

export const revalidate = 3600

GraphQL API

const POSTS_QUERY = `
  query GetPosts($limit: Int) {
    blogPostCollection(limit: $limit, order: publishedAt_DESC) {
      items { title, slug, excerpt, publishedAt }
    }
  }
`

const response = await fetch(`https://graphql.contentful.com/content/v1/spaces/${SPACE_ID}/`, {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Authorization: `Bearer ${ACCESS_TOKEN}`,
  },
  body: JSON.stringify({ query: POSTS_QUERY }),
})

const { data } = await response.json()

Webhooks for ISR

In Contentful: Settings → Webhooks → Add Webhook:

// app/api/revalidate/contentful/route.ts
export async function POST(req: Request) {
  const secret = req.headers.get('x-contentful-webhook-secret')
  if (secret !== process.env.CONTENTFUL_WEBHOOK_SECRET) {
    return Response.json({ error: 'Unauthorized' }, { status: 401 })
  }

  const body = await req.json()
  revalidateTag('contentful')

  return Response.json({ revalidated: true })
}

Comparison

Criterion Contentful Sanity Strapi Directus
Hosting SaaS only SaaS only Self-hosted / Cloud Self-hosted / Cloud
Rich text Contentful RT Portable Text Markdown JSON
Real-time No Yes No Yes

Timeline

Basic website with 3–5 content types and Next.js — 1.5–2 weeks. Complex multilingual project with Preview Mode and GraphQL — 3–4 weeks.