Skip to content

Corporate Website on the Jamstack Powered by Next.js and Strapi.

License

Notifications You must be signed in to change notification settings

itc-lab/itccorporation

Repository files navigation

Corporate Website Powered by Next.js

itccorporation

Corporate Website on the Jamstack Powered by Next.js and Strapi.

Demo

Access the following demo site:

https://itccorporation.jp

Features

Requirements

  • Node.js and npm

Headless CMS (Strapi) Data Schema

Available

type: Collection

field name type
name Text
logo Media
description Text
priority Number

Content

type: Collection

field name type
slug Text
title Text
image Media
image_sp Media
whats_new Rich text
content Rich text

Seo-image

type: Collection

field name type
image Media
alt Text

OpenGraph

type: Collection

field name type
slug Text
type Text
url Text
title Text
description Text
seo_images Relation with Seo-image

BreadcrumbJsonLd

type: Collection

field name type
position Number
name Text
item Text

Twitter

type: Single

field name type
handle Text
site Text
cardtype Text

Getting started

You will need to deploy the frontend and backend projects separately. Here are the docs to deploy each one:

backend

npm run develop

The Strapi backend server will run here => http://localhost:1337

frontend

Create a .env.local file similar to .env.example:

GRAPHQL_API=http://localhost:1337/graphql
NEXT_PUBLIC_RECAPTCHA_SITE_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Run the following command on your local environment:

git clone --depth=1 https://github.com/itc-lab/itccorporation.git my-project-name
cd my-project-name
npm install

Create a symbolic link to Strapi's uploads directory:

ln -s [Strapi's uploads directory] public/uploads

Then, you can run locally in development mode with live reload:

npm run dev

The Next frontend server will run here => http://localhost:3000

License

MIT