This repository contains a tutorial project that demonstrates how to build a full-stack application using Next.js for the frontend and Strapi for the backend.
Make sure you have the following installed on your system:
- Node.js (>=14.x)
- npm (>=6.x)
- nextjs-frontend/: This directory contains the frontend code, which is built using Next.js.
- strapi-backend/: This directory contains the backend code, which is built using Strapi, a headless CMS.
To run the frontend application:
-
Navigate to the
nextjs-frontend
directory.cd nextjs-frontend
-
Install the dependencies:
npm install
-
Start the development server:
npm run dev
The frontend will be running at http://localhost:3000
.
To run the backend application:
-
Navigate to the
strapi-backend
directory.cd strapi-backend
-
Install the dependencies:
npm install
-
Start the Strapi development server:
npm run develop
The backend will be running at http://localhost:1337
. If you have Razer Chroma installed, change the port in the Strapi configuration to avoid conflicts.