GithubHelp home page GithubHelp logo

triangular's Introduction

Triangular

v 0.1.1 Alpha (Sullust)

A Fully Operational Vertical Stack Framework Featuring KOA, MongoDB & AngularJS

Installation

npm install triangular -g

Whats It About?

  • Installed Global for Built in Generators, Scaffolding, Testing, Deployment, and Monitoring
  • Highly Opinionated (makes it very easy to get up and running very quickly)
  • Includes Database, Backend, API, and Front-End Single Page Application
  • All Written in Javascript
  • Quick Setup with Config Files
  • Automated DB Connection Management (1 or more DBs)
  • Automated Controller Routing
  • Automated Shared Server & Client Application Data Models
  • Automated Asset Management
  • Automated Application Build Process
  • You Just Worry About Your Application Logic
  • Magic

Before you get started with Triangular, you should be willing to accept the fact that we picked what we believe are the best libraries and tools to get you up and going very quickly. We designed and built Triangular around a delivering a single path to developing your application quickly and with the most features - not options.

Now, witness the power of this fully operational node framework.

Tech

Triangular uses a number of open source projects to work properly:

  • node.js - Evented I/O for the Backend
  • Koa - Amazing, Newer Brother to Node Express
  • MongoDB - Database
  • Redis - Quick, Persistent Data Store
  • Mongoose - Server Side Model Validation for MongoDB
  • AngularJS - Client Side Javascript Framework
  • Twitter Bootstrap - Making the Front End Look Nice

Getting Started

Models

Triangular creates either back end, front end or shared models depending on where you will be utilizing your models in the controller logic. Any front end or shared models will be visible in the Javascript and therefore the structure will be public. Back end models are not public or available to the front end.

Model Configuration Structure

Models are defined in configuration modules which are picked up by Triangular. Model locations must be kept in their original locations to work.

Structure

module.exports = {

    // User's First Name
    first: 'String',

    // User's Email Address
    email: {
        type: 'Email',
        required: true,
        unique: true,
        size: 'Long',
        validate: true,
        max: 120,
        min: 6
    }

}

Model Properties

Below the bold items in the list are the properties, italicized are config values and italicized in parenthesis are the defaults.

Universal

  • type String (String)
    • String
    • Email
    • Password
    • Select
    • Phone
    • Zip
    • SSN
    • Number
    • Date
    • Buffer
    • Boolean
    • List
  • required Boolean (false)
  • validate Boolean (true) | Validation should be performed
  • unique Boolean (false)
  • maxSize Int | Maximum allowable length
  • minSize Int | Minimum allowable length
  • store Boolean (true) | Property should be sent back end and stored
  • autogenerate Boolean (false) | Will auto-generate a hash for the value
  • autogenerateLength Int (16) | Length of the hash to generate
  • default Mixed | The default value if not given

Front End

  • show boolean (true) | Indicates if the value should be shown in forms and lists

Back End

Front End & Shared Models

These models will be available and automatically created for use in the Angular controller logic. The must be located at:

app/public/models

Back End Models

These modules will be available and automatically created for use in the back end controller logic. The must be located at:

app/api/models

MIT License

Copyright (c) 2014 Thomas Brian [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Free Software, Hell Yeah!

triangular's People

Contributors

tdbrian avatar

Stargazers

 avatar kreja avatar

Watchers

James Cloos avatar  avatar

Forkers

gabrielvalle

triangular's Issues

How to use?

Hi, this project looks interesting and I would like to test it. Is it ready to use? If it is, how so? I tried npm install triangular -g but it's not a registered npm package. I npm installed from git but what other steps are needed?

Thanks

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.