This repository contains the following:
- Strapi project with existing Content-types and data (
/backend) - Next.js client ready to fetch the content of the Strapi application (
/frontend)
- Clone the repository by running the following command:
git clone https://github.com/daryllukas/wazz-gud-here.git- Navigate to your project folder by running
cd wazz-gud-here.
Be sure to have the correct env variables for each part:
- Next.js (example in
./frontend/.env.local):NEXT_PUBLIC_STRAPI_API_BASE=<url-of-strapi>STRAPI_API_TOKEN=<random-token>
Navigate to the backend folder by running cd backend from your command line.
- Run the following command in the
backendfolder:
npm i & npm run developThis will install the dependencies, fill your application with data and run your server. You can run these commands separately.
Navigate to the frontend folder by running cd client from your command line.
- Run the following command in the
frontendfolder
npm i && npm run dev