codenameyau / preact-express-template

Preact application with express server template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

preact-express-template

Features

  • Watch mode and hot module reloading for Preact application.
  • Watch mode for our node Express server.
  • Preact application comes with styled-components and storybook.
  • Express server comes with proxy, middleware, logging.
  • Workflow: Prettier, eslint, imagemin is run on every commit.
  • Isomorphic absolute ES6 import statements on both client app and server.
  • Jest has been setup with enzyme and enzyme-adapter-preact-pure.
  • Project is setup for heroku deployment.

CLI Commands

Getting Started

# Copy env file then copy paste env variables.
cp env/local.env .env

# install dependencies
yarn install

# Spin up dev server.
yarn start

Other Commands

# Run unit tests with Jest and Enzyme.
yarn test

# Analyze bundle size.
yarn analyze

# Build and run production app.
yarn production

About

Preact application with express server template

License:MIT License


Languages

Language:JavaScript 94.2%Language:HTML 5.8%