๐Ÿ“ฆ marcin-piechaczek / nextjs-playground

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching
๐Ÿ“ฅ Clone https://github.com/marcin-piechaczek/nextjs-playground.git
HTTPS git clone https://github.com/marcin-piechaczek/nextjs-playground.git
SSH git clone git@github.com:marcin-piechaczek/nextjs-playground.git
CLI gh repo clone marcin-piechaczek/nextjs-playground
marcin.piechaczek marcin.piechaczek just testing 92c5746 5 years ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ components
๐Ÿ“ lib
๐Ÿ“ pages
๐Ÿ“ public
๐Ÿ“ store
๐Ÿ“ styles
๐Ÿ“„ .gitignore
๐Ÿ“„ jsconfig.json
๐Ÿ“„ next.config.js
๐Ÿ“„ package.json
๐Ÿ“„ README.md
๐Ÿ“„ yarn.lock
๐Ÿ“„ README.md

How-to Magento with Next.js

vol.1 Getting Started

Next.js is a minimalistic JAMstack framework; most of it is invisible to you (the developer). However, it is extensible when you need to customize and bring other third-party libraries.

What you get out of the box with Next.js

  • Pre-rendering. Static generated and server-side rendered.
  • Zero Configuration. Auto code splitting, file-system based routing, and universal rendering.
  • Static Exporting. It just happens. One command to build.
  • Fully Extensible. Complete control over Babel and Webpack. Next-plugins.
  • CSS-in-JS. Next comes with styled-jsx included, but it also works with other styling solutions.
  • Ready for Production. Optimized for a smaller build size.
โš ๏ธ This is proof-of-concept for a Next.js project using data from Magento.

Getting Started

โ˜๏ธ Create a new .env file based on .env.sample, and change the value of MAGENTO_URL to point to your Magento instance.

๐Ÿ‘Œ Install dependencies by running npm install or yarn install

Development Mode

๐Ÿ‘Œ Run npm run dev or yarn dev to start the application on development mode, and visit https://localhost:3000

Production Mode

โ˜๏ธ Run npm run build or yarn build

๐Ÿ‘Œ Run npm run start or yarn start, and visit https://localhost:3000