The bare minimum you need to get a frontend up and running on Crystallize. React SSR with Next.js
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.crystallize-greeting
.vscode
__tests__/components
components
lib
pages
server
static
ui
.babelrc
.browserlistrc
.editorconfig
.env.example
.eslintrc
.gitignore
.prettierignore
.prettierrc
CHANGELOG.md
LICENSE
README.md
jest.config.js
jest.setup.js
now.json
package.json
yarn.lock

README.md

Crystallize frontend boilerplate

The bare minimum skeleton you need to get a frontend up and running on Crystallize. React 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