GithubHelp home page GithubHelp logo

action-goweb's Introduction

go-build-web logo

go-build-web

go-build-web is a simple powerful (enough) tools to build a website using Markdown, JSON and Golang template. You don't need any special tools or database, you don't need to learn any technology. You can use the existing HTML knowledge you have and build your website. Unlike most of the static website generator, go-build-web does not pack the resources since HTTP2 has a better approach for loading and cashing resource.

Install/Run

There's no setup, just download the latest version from releases, extract the zip file and run go-build-web-<OS>. Your website is ready http://localhost:3000

To generate the static HTML files, run ./go-build-web-<OS> clean build. You HTML files are ready in build folder.

Get started

To create a new page, you need to create at least one index.html file in static folder. This file can be a simple HTML file or uses the Golang template tags to make it more functional. Using the template syntax you can:

  • Build layout using layout.html file.
  • Render markdown using MarkdownFile function.
  • Load data from an external JSON file, index.json. You can use this file to load some classified metadata using in your pages.

To create a new folder, you just need to make a folder with the same name and put index.html inside.

For example, if you want to make http://foo.com/page1/ you need to make static/page1/index.html. You must remember in go-build-web all the pages finish by /.

For more information check the list of samples:

Build the static files

Simply run go-build-web-<OS> clean build and you website generetes whitin build directory.

Doing more

By default application run on port 3000 You can change the port using PORT environment variable. For example in bash:

PORT=8000 ./go-build-web-<OS>

action-goweb's People

Contributors

sjnyos avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.