mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-08 21:07:46 +00:00
30 lines
707 B
Markdown
30 lines
707 B
Markdown
# Preact
|
|
|
|
This directory is a brief example of a [Preact](https://preactjs.com/) app that can be deployed to Vercel with zero configuration.
|
|
|
|
## Deploy Your Own
|
|
|
|
Deploy your own Preact project with Vercel.
|
|
|
|
[](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/examples/preact&template=preact)
|
|
|
|
_Live Example: https://preact-template.vercel.app_
|
|
|
|
## Running Locally
|
|
|
|
``` bash
|
|
# install dependencies
|
|
npm install
|
|
|
|
# serve with hot reload at localhost:8080
|
|
npm run dev
|
|
|
|
# build for production with minification
|
|
npm run build
|
|
|
|
# test the production build locally
|
|
npm run serve
|
|
|
|
# run tests with jest and enzyme
|
|
npm run test
|
|
``` |