All Projects → azer → go-preact-starter

azer / go-preact-starter

Licence: other
Starter for combining Go and Preact in any web project.

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to go-preact-starter

browser-extension
Browser Extension Template with ESbuild builds, support for React, Preact, Typescript, Tailwind, Manifest V3/V2 support and multi browser build including Chrome, Firefox, Safari, Edge, Brave.
Stars: ✭ 535 (+2715.79%)
Mutual labels:  preact, starter
11tyby
Simple 11ty setup using TypeScript, SASS, Preact with partial hydration, and other useful things. Aims to provide the DX of Gatsby, but using 11ty!
Stars: ✭ 38 (+100%)
Mutual labels:  preact, starter
Zero To Preact
A Step-by-step Guide to Preact + Webpack 2, without boilerplate!
Stars: ✭ 185 (+873.68%)
Mutual labels:  preact, starter
gatsbyjs-starter-tailwindplay
GatsbyJS Tailwind Starter - TailwindPlay
Stars: ✭ 69 (+263.16%)
Mutual labels:  starter
moonwave
🌗 A small web application framework.
Stars: ✭ 14 (-26.32%)
Mutual labels:  preact
node-red-node-typescript-starter
🏁 Quick-start template repository for creating new Node-RED node sets in TypeScript.
Stars: ✭ 64 (+236.84%)
Mutual labels:  starter
shopping-list-preact-pouchdb
Shopping List is an Offline First demo Progressive Web App built using Preact and PouchDB.
Stars: ✭ 18 (-5.26%)
Mutual labels:  preact
ninetales
An experimental framework raising the performance bar
Stars: ✭ 27 (+42.11%)
Mutual labels:  preact
maji
Maji is a framework to build great hybrid mobile apps.
Stars: ✭ 18 (-5.26%)
Mutual labels:  preact
agrippa
The CLI for frontend component generation
Stars: ✭ 555 (+2821.05%)
Mutual labels:  preact
material2-admin
Angular - Material2 - Redux - Flex - Admin Example - Starter
Stars: ✭ 13 (-31.58%)
Mutual labels:  starter
sass-starter-pack
Sass starter files using Gulp v4.0.0 🔥
Stars: ✭ 34 (+78.95%)
Mutual labels:  starter
netlify-cms-widget-starter
A boilerplate for creating Netlify CMS widgets.
Stars: ✭ 74 (+289.47%)
Mutual labels:  starter
create-react-app-starter
CRA + typeless starter
Stars: ✭ 21 (+10.53%)
Mutual labels:  starter
twitch-extension-starter
Kickstarts your Twitch Extension using React
Stars: ✭ 38 (+100%)
Mutual labels:  starter
rainbow-explorer
🌈 A 20kb Preact & Redux based Progressive Web App that translates real life color to digital color.
Stars: ✭ 26 (+36.84%)
Mutual labels:  preact
PreactSimpleStarter
PWA Simple Starter with Preact, Preact-mdl and Webpack2 🔥🔥🔥
Stars: ✭ 65 (+242.11%)
Mutual labels:  preact
frontenso-11ty-starter
Production-ready 11ty+Gulp+Webpack Starter that features Nunjucks, SASS, TailwindCSS (with JIT complier), and ESNext.
Stars: ✭ 24 (+26.32%)
Mutual labels:  starter
vividus-starter
VIVIDUS-based test project template
Stars: ✭ 43 (+126.32%)
Mutual labels:  starter
create-react-native-dapp
Your next Ethereum application starts here. ⚛️ 💪 🦄
Stars: ✭ 410 (+2057.89%)
Mutual labels:  starter

go-preact-starter

Starter for combining Go and Preact in any web project.

How It Works?

  • Renders Preact components on serverside using go-duktape
  • Unifies client-side and server-side routing on one JSON file.
  • Watches Go, JS, CSS files, compiles them automatically and refreshes your browser.
  • Uses Browserify, no configuration needed.
  • Supports server-side templating for HTML documents that wraps the application. So you can have multiple pages.
  • Locates all Go dependencies inside the project for security by giving you a convenient GOPATH setup.
  • Provides caching when development mode is disabled.

Install

Clone the repo and install the dependencies:

git clone [email protected]:azer/go-preact-starter.git hello-world
cd hello-world
make install # install dependencies needed
make develop # start developing! visit localhost:9000 to see your website!

Coding Notes

  • Create UI components under frontend/components
  • Define your routes on routes.json, point them to a valid component.
  • Run make go-get and make frontend-install to install new dependencies.
  • Edit .env file to choose different host/port for serving.

What's missing ?

  • API polyfill for backend
  • Could be nice to see backend errors on the browser.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].