SafdarJamal / preact-boilerplate

βš›οΈπŸš€ A minimal Preact boilerplate project, powered by Parcel.

Home Page:https://preactjs-boilerplate.surge.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Preact Boilerplate

A minimal Preact boilerplate project, powered by Parcel.

Preact App in Action

Folder Structure

No configuration or complicated folder structures, just the files you need to build your app:

preact-boilerplate
β”œβ”€β”€ README.md
β”œβ”€β”€ node_modules
β”œβ”€β”€ package.json
β”œβ”€β”€ .gitignore
β”œβ”€β”€ public
β”‚   β”œβ”€β”€ favicon.ico
β”‚   └── index.html
└── src
    β”œβ”€β”€ App.css
    β”œβ”€β”€ App.js
    β”œβ”€β”€ index.css
    β”œβ”€β”€ index.js
    └── logo.svg

Development

To get a local copy of the code, clone it using git:

git clone https://github.com/SafdarJamal/preact-boilerplate.git
cd preact-boilerplate

Make it your own:

rm -rf .git && git init && npm init
git add .
git commit -m "Initial commit"

Install dependencies:

npm i

Now, you can start a local web server by running:

npm start

And then open http://localhost:3000 to view it in the browser.

Available npm Scripts

Script Description
npm start Runs the app in development mode.
npm run build Builds the app for production to the build folder.

Credits

Preact Boilerplate is built and maintained by Safdar Jamal.

License

This project is licensed under the terms of the MIT license.

About

βš›οΈπŸš€ A minimal Preact boilerplate project, powered by Parcel.

https://preactjs-boilerplate.surge.sh

License:MIT License


Languages

Language:CSS 45.8%Language:JavaScript 32.5%Language:HTML 21.8%