Skip to content

nicklima/strapi-blog-frontend-next

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Next.js Blog with Strapi Headless CMS

Maintainability Test Coverage



This project is the frontend application (next.js hosted on Vercel) of a Headless blog using Strapi as CMS (hosted on Heroku), including image management.

This starter is based on Next.js Blog Starter and was create to be an option of starter with Styled Components + TypeScript.

Table of contents

Preview

Click here to view the frontend project demo.
Click here To see the backend project repository.

Credits

The photos are from Unsplash and Strapi.

Technologies

Installation

Cloning

Clone the repository:

git clone [email protected]:nicklima/strapi-blog-frontend-next.git

Install Dependencies

Navigate to the project directory

cd strapi-blog-frontend-next

and install the dependencies:

yarn
# or
npm install

Running The Project

After install the dependencies, you can run the app in the development mode.
Open http://localhost:3000 to view it in the browser.

Remember that you will need to set the URL of your Strapi project in your environment variables.

If you want, you can download our Strapi CMS repository, install its dependencies and run the yarn develop command and use the url of localhost in your .env file

NEXT_PUBLIC_STRAPI_API_URL=http://localhost:1337

After downloading the CMS Strapi code and installing the dependencies, run the yarn develop command to run the local environment.
Remember to keep the CMS environment running in another terminal tab and then run the command to run the local environment of the frontend of our application.

yarn dev
# or
npm run dev

Build The Project

After install the dependencies, you can build the app for production to the .next folder.\

npm run build
# or
yarn build

Your app is ready to be deployed!

About Next

Visit https://nextjs.org/learn to get started with Next.js or visit https://nextjs.org/docs to view the full documentation.

About Strapi

Check the Strapi quick start to get started with Strapi or visit Strapi Docs to view the full documentation.

License

MIT © Nick Lima

About

Frontend application of a Headless blog using Strapi as CMS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Contributors 3

  •  
  •  
  •