Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/codenameyau/preact-express-template

Preact application with express server template
https://github.com/codenameyau/preact-express-template

express heroku javascript nodejs preact preact-cli react starter-kit styled-components template

Last synced: about 1 month ago
JSON representation

Preact application with express server template

Awesome Lists containing this project

README

        

# 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

```bash
# 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
```bash
# Run unit tests with Jest and Enzyme.
yarn test

# Analyze bundle size.
yarn analyze

# Build and run production app.
yarn production
```