fragmenta-app

command module
v0.0.0-...-24c7f3d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2017 License: MIT Imports: 3 Imported by: 0

README

fragmenta-app

A minimal website built with fragmenta, with only a home page and minimal styling.

Gettting Started

To create a copy of this app, run:

fragmenta new $GOPATH/src/my/app/name app

Then cd to your new app and run migrations:

fragmenta migrate

Then run the server:

fragmenta

App Structure

server.go

This is the main entrypoint for the application. The structure of other parts of the application is dictated by what you need from it.

The src folder

This is a suggested structure for an application, the structure used is entirely up to you, if you prefer you don't have to use a src folder.

The src/app folder

This contains general app files, resources like pages or users should go in a separate pkg.

The src/lib folder

lib is used to store utility packages which can be used by several parts of the app. Some examples of libraries are included, but unused in this example application.

The src/lib/templates folder

Templates for generating new resources are stored in here and used by fragmenta generate to generate a new resource package, containing assets, code and views.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
src
app
lib/resource
Package resource provides some shared behaviour for resources, and basic CRUD and URL helpers.
Package resource provides some shared behaviour for resources, and basic CRUD and URL helpers.
users
Package users represents the user resource
Package users represents the user resource

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL