Step 1 - Install NPM
npm -y init
Step 2 — Install Packages npm add react react-dom next @emotion/core @emotion/styled
Step 3 - Add the following dependencies in package.json
"scripts": { "dev": "next", "build": "next build", "start": "next start" }, "dependencies": { "@emotion/core": "^10.0.7", "@emotion/styled": "^10.0.7", "next": "^8.0.3", "react": "^16.8.4", "react-dom": "^16.8.4" }
Step 4 — Folder Structure . Create the following folder directory structure ├── components ├── layouts ├── node_modules ├── package.json ├── pages ├── styles.js
Step 5 — Build Page Layout Step 6 — Create pages Step 7 - Run App Server npm run dev