The bare minimum you need to get a frontend up and running on Crystallize. React SSR with Next.js
Clone or download
Latest commit 4a9d9a2 Dec 5, 2018

README.md

Crystallize React ecommerce frontend boilerplate

The bare minimum skeleton you need to get a frontend up and running on the headless commerce & GraphQL based PIM service Crystallize. React commerce with SSR with Next.js.

React: latest

Next: latest

code style: prettier

code linter: Eslint

Getting started

App structure

./pages

Put all your entry pages here

./components

All your shared components

./ui

UI related components live her. Color variables and simple shared components

./server

This is where the ultra-light frontend server lives. Its primary function is to render the React app in response to a request

./lib

Library code to enable GraphQL and REST API communication and more

./static

Resources server statically by the web server. Including translation files

Deploy

There are multiple alternatives for deployments, however for the easiest hosting of a Node application, one option is Now.

Deploying with Now

  • Register a Now account
  • Run yarn global add now
  • Navigate to your project folder
  • Run now