Skip to content

Initial setup for a project with next.js and strapi.io

Notifications You must be signed in to change notification settings

freesh/next-strapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Kickstart Strapi.io and Next.js

Next.js

Website: https://nextjs.org/

Documentation: https://nextjs.org/docs/

Github: https://github.com/zeit/next.js

Strapi.io

Website: https://strapi.io

Documentation: https://strapi.io/documentation/

Github: https://github.com/strapi/strapi

depends on

  • node >= 10
  • npm >= 6
  • docker >= 18.02.0
  • make

Init a new project

1. Install strapi cli

npm install strapi@alpha -g

2. Init strapi and next

make init

Then follow the instructions and edit the ./app/package.json to add the scripts section.

{
  "scripts": {
    "dev": "next",
    "build": "next build",
    "start": "next start"
  }
}

3. Start docker, strapi and next.js

make up

Stop docker, strapi and next.js

make down

Urls

App: (next.js)

Backend: (strapi)

Adminer:

About

Initial setup for a project with next.js and strapi.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published