francisudeji / nextjs-strapi-data-fetching

How to handle data fetching with Next.js and Strapi CMS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction to Data Fetching With Next.js and Strapi CMS

Technologies:

Getting Started

Backend

  • cd into the backend folder and install all dependencies
npm install
# or
yarn install

Open http://localhost:1337/admin with your browser to login(Username and password are both francisudeji).

Frontend

First, create a .env.development file at the root of the frontend folder with the link to your strapi API or rename the .env.example to .env.development

Secondly, install all dependencies:

npm install
# or
yarn install

Lastly, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

About

How to handle data fetching with Next.js and Strapi CMS


Languages

Language:JavaScript 100.0%