All Projects → kevinburke → Go Html Boilerplate

kevinburke / Go Html Boilerplate

Starter pack for doing web development in Go

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Go Html Boilerplate

Webvr Webpack Boilerplate
A webvr multi-scenes Single-page application for three.js, webpack
Stars: ✭ 47 (-79.48%)
Mutual labels:  starter-kit, router, boilerplate
Express Typescript Boilerplate
A delightful way to building a RESTful API with NodeJs & TypeScript by @w3tecch
Stars: ✭ 2,293 (+901.31%)
Mutual labels:  starter-kit, boilerplate
React Redux Styled Hot Universal
react boilerplate used best practices and focus on performance
Stars: ✭ 147 (-35.81%)
Mutual labels:  starter-kit, boilerplate
Rinse React
🚿 Rinse, React, repeat. A boilerplate to build a React component library.
Stars: ✭ 165 (-27.95%)
Mutual labels:  starter-kit, boilerplate
Project Webcube
Continuously updated JS infrastructure for modern web dev
Stars: ✭ 141 (-38.43%)
Mutual labels:  starter-kit, boilerplate
Laravel Scaffold
The base for developing awesome projects
Stars: ✭ 142 (-37.99%)
Mutual labels:  starter-kit, boilerplate
Express Graphql Typescript Boilerplate
A starter kit for building amazing GraphQL API's with TypeScript and express by @w3tecch
Stars: ✭ 163 (-28.82%)
Mutual labels:  starter-kit, boilerplate
Next Js Blog Boilerplate
🚀 Nextjs Blog Boilerplate is starter code for your blog based on Next framework. ⚡️ Made with Nextjs, TypeScript, ESLint, Prettier, PostCSS, Tailwind CSS.
Stars: ✭ 134 (-41.48%)
Mutual labels:  starter-kit, boilerplate
Mern
🌐 MERN stack 2.0 - MongoDB, Express, React/Redux, Node
Stars: ✭ 175 (-23.58%)
Mutual labels:  starter-kit, boilerplate
Threejs Modern App
Boilerplate and utils for a fullscreen Three.js app
Stars: ✭ 176 (-23.14%)
Mutual labels:  starter-kit, boilerplate
Js Library Boilerplate
Javascript Starter Boilerplate - Webpack 4, Babel 7, UMD, Hot Reloading, and more
Stars: ✭ 202 (-11.79%)
Mutual labels:  starter-kit, boilerplate
Typescript React Native Starter
A highly scalable foundation with a focus on best pratices and simplicity to start your React Native project in seconds.
Stars: ✭ 141 (-38.43%)
Mutual labels:  starter-kit, boilerplate
React Universally
This starter kit contains all the build tooling and configuration you need to kick off your next universal React project, whilst containing a minimal "project" set up allowing you to make your own architecture decisions (Redux/MobX etc).
Stars: ✭ 1,704 (+644.1%)
Mutual labels:  starter-kit, boilerplate
Iceberg
Front-End Boilerplate built with React + Babel + Webpack + SASS
Stars: ✭ 144 (-37.12%)
Mutual labels:  starter-kit, boilerplate
Eleventy Starter Boilerplate
🚀 Eleventy Starter is production-ready with SEO-friendly for quickly starting a blog. ⚡ Built with Eleventy, ESLint, Prettier, Webpack, PostCSS, Tailwind CSS and Netlify CMS (optional).
Stars: ✭ 139 (-39.3%)
Mutual labels:  starter-kit, boilerplate
React Native Typescript Boilerplate
React Native Typescript starter kit / template (Redux Thunk + React Native Navigation v7 + TSLint)
Stars: ✭ 155 (-32.31%)
Mutual labels:  starter-kit, boilerplate
Pollinate
Template your base files and generate new projects from Git(Hub).
Stars: ✭ 213 (-6.99%)
Mutual labels:  boilerplate, templates
Subzero Starter Kit
Starter Kit and tooling for authoring GraphQL/REST API backends with subZero
Stars: ✭ 136 (-40.61%)
Mutual labels:  starter-kit, boilerplate
Fullstack Apollo React Boilerplate
💥A sophisticated Apollo in React boilerplate project.
Stars: ✭ 136 (-40.61%)
Mutual labels:  starter-kit, boilerplate
Tsmean
Typescript-mysql-express-angular-node seed for your next web-app!
Stars: ✭ 173 (-24.45%)
Mutual labels:  starter-kit, boilerplate

Go html boilerplate

This is a starter pack for doing web development with Go, with support for some of the things you'll usually want to add to an HTML web server:

  • Adding templates and rendering them
  • Regex matching for routes
  • Logging requests and responses
  • Serving static content with caching/busting
  • Watching/restarting the server after changes to CSS/templates
  • Loading configuration from a config file
  • Flash success and error messages

Read more about the choices and the feature set found here. You can see an example project using go-html-boilerplate here.

Feel free to adapt the project as you see fit; that should be pretty easy to do since no one component does too much on its own, and all of them operate on standard library interfaces like http.Handler.

To get started, run go get ./... and then make serve to start a server on port 7065. You may need to run make generate_cert to generate a self-signed certificate for local use.

Templates go in the "templates" folder; you can see how they're loaded by examining the init function in main.go. Run make assets to recompile them into the binary.

Static files go in the "static" folder. Run make assets to recompile them into the binary.

Watching for changes

Run make watch to restart the server after you make changes to the assets directory.

If you are on a Mac, be sure to add this folder to the Spotlight privacy list, or file modify events will fire a second time when Spotlight indexes updates.

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].