Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/codenameyau/preact-express-template
- Owner: codenameyau
- License: mit
- Created: 2020-02-16T06:44:25.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-12T01:58:29.000Z (almost 2 years ago)
- Last Synced: 2024-04-15T00:03:13.794Z (7 months ago)
- Topics: express, heroku, javascript, nodejs, preact, preact-cli, react, starter-kit, styled-components, template
- Language: JavaScript
- Homepage:
- Size: 2.2 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```