bemurphy / syro-demo

Demo application with Syro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Syro Demo

This is a demo application that showcases some very basic functionality like rendering templates, sending emails, and managing user accounts.

Getting started

I recommend having this command that runs make with a custom set of environment variables. I put it in ~/bin/mk, and I use it instead of running make directly.

#!/bin/sh

if [ -f .env ]; then
	env `cat .env` \
	make $*
else
	make $*
fi

Once you have the mk command, run mk or mk help to setup the project. For your convenience, the mk command is installed inside ./bin, so you can just run ./bin/mk and it will work.

Directory layout

.env      # Environment variables
.gems     # Dependencies
LICENSE   # Full text of the project's license
README.md # Information about the project
app.rb    # Top level Syro application
bin/      # Executable files
config.ru # Rack's entry point, it loads ./app.rb
decks/    # Custom decks
doc/      # Documentation
filters/  # Validation filters
lib/      # Libraries
mails/    # Templates for emails
makefile  # make server; make console; make tests
models/   # Models
public/   # Static files
routes/   # Syro apps that will be mounted
services/ # Service objects
test/     # Test files
views/    # Templates for views

More information

To learn more about Syro, visit the website and check the tutorial.

About

Demo application with Syro

License:MIT License


Languages

Language:Ruby 94.4%Language:CSS 3.8%Language:Makefile 1.5%Language:Shell 0.3%