Mirror

Volodymyr Tkach 6bebaa5b15 Update README.md 2 years ago
engine 2be64b3f57 Version++ 2 years ago
hosts 36c95b0e07 Restore page templates 4 years ago
support a64cf7557a Upgrade Cypress to latest version, migrate follow recommendations 2 years ago
vendor 32a6979779 Autofixes 2 years ago
.gitignore a5a6391e0f CP, Settings, edit domains (form and action) 4 years ago
Dockerfile 7865248aca Update Dockerfile 2 years ago
LICENSE 933cabd8db Update LICENSE 2 years ago
Makefile 2be64b3f57 Version++ 2 years ago
README.md 6bebaa5b15 Update README.md 2 years ago
benchmark.md b900748870 Update benchmark.md 4 years ago
go.mod 1bf1d09440 Update libs 2 years ago
go.sum a7b2128c4a Session cleaner by worker 4 years ago
main.go 1ce7db768f Update main.go 4 years ago

README.md

golang-fave

Cypress

CMS written on Go with MySQL as database. Dynamical, splitted by modules, user friendly and thanks bootstrap is fully adaptive for mobile devices and tablets. All in one binary file, no need to install additional web servers. Go native templates with vars allow to do almost all what are need. Default user email and password after database installation for admin user is example@example.com

Screenshots

Screenshots

Usage

Usage of ./fave:
  -debug
    debug mode with ignoring log files
  -dir string
    virtual hosts directory
  -host string
    server host (default "0.0.0.0")
  -keepalive
    enable/disable server keep alive
  -port int
    server port (default 8080)

Hosts structure

hosts
├── localhost                      # Main host directory
├──── config                       # Config directory
├────── .domains                   # Attached domains
├────── config.json                # CMS config file
├────── mysql.json                 # MySQL config file
├──── htdocs                       # Public http files
├──── logs                         # Logs dir
├────── access.log                 # Access log file
├────── error.log                  # Error log file
├──── template                     # Engine templates
├────── 404.html                   # Template for 404 page
├────── blog-category.html         # Template for blog category
├────── blog-post.html             # Template for blog post
├────── blog.html                  # Template for blog home page
├────── cached-block-1.html        # Cached block 1
├────── cached-block-2.html        # Cached block 2
├────── cached-block-3.html        # Cached block 3
├────── cached-block-4.html        # Cached block 4
├────── cached-block-5.html        # Cached block 5
├────── email-new-order-admin.html # New order email template
├────── email-new-order-user.html  # New order email template
├────── footer.html                # Footer
├────── header.html                # Header
├────── index.html                 # Template for home page
├────── maintenance.html           # Template for maintenance page
├────── page.html                  # Template for any other pages
├────── robots.txt                 # Host robots.txt file
├────── scripts.js                 # Theme scripts file
├────── shop-category.html         # Template for shop category
├────── shop-product.html          # Template for shop product
├────── shop.html                  # Template for shop home page
├────── sidebar-left.html          # Can be included in templates
├────── sidebar-right.html         # Can be included in templates
├────── styles.css                 # Theme styles file
└──── tmp                          # Temporary dir for session files

Unlimited hosts count. Template variables in Wiki or here and here.

Docker image: https://hub.docker.com/r/vladimirok5959/fave

Development

In root dir

  • make - vet, test, build and run in debug mode locally
  • make build - build release for Linux, Mac OS X and Windows
  • make format - format all code by gofmt utility
  • make update - get all dependencies and put to vendor folder
  • make docker-test - build image and start on port 8080
  • make docker-img - build docker image only
  • make docker-push - build and push image to docker hub
  • make migrate - create new empty migration file

In support dir

  • make cy-dev - cypress tests in browser
  • make cy - cypress tests in console
  • make ab - http stress test

Roadmap

Task Status Done
Module Pages ready for use 100%
Module Blog ready for use 100%
Module Shop ready for use 100%
Files manager ready for use 100%
Shop products filters in progress 0%
Shop payments integration in progress 0%

Used resources