Skip to content

Latest commit

 

History

History
74 lines (52 loc) · 1.15 KB

README.md

File metadata and controls

74 lines (52 loc) · 1.15 KB

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: