Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 905 Bytes

File metadata and controls

33 lines (20 loc) · 905 Bytes

Electrostatic — ssr and ssg

Simple app to generate and serve static content.More info in this article (ru).

Installation

  1. install the package go install github.com/laranatech/electrostatic@latest
  2. initialize the project electrostatic -m init -r /path/to/source
  3. edit template.html and meta.json as you wish
  4. You are ready to go!

Usage

This app supports 2 modes:

SSMG (SSR) mode (recomended for development)

Just run it with electrostatic -m serve -r /path/to/source

SSG mode

Build it with electrostatic -m export -r /paht/to/source. Your static site will be written in ./dist directory. Copy it to your static server and that's all.

Credits

Evgenii Kucheriavyi

Support on boosty or patreon.