Giter VIP home page Giter VIP logo

dynamo.js's Introduction

dynamo

About

A very rough version of what I think an ideal framework looks like to me. This will go through major changes as I start using it in my own projects, and to test out areas where the tools presented here will not work.

Aim

My aim is to create a framework that will allow me to create and implement projects faster, and with less boilerplate code. Things like OAuth, User Creation will be dealt with, and I will be able to get started a lot faster.

The things I think are essential are:

  • Easy configuration
  • Easy database configuration
  • OAuth implemented and easy to use
  • Able to change routes during run-time

I am still on an older version of Express, and using the old route patterns. This will remain the case for a while until I fully understand the new changes.

Some examples

Hello World

'use strict';

var dynamo = require('../lib/core');

// Initialization
dynamo.initialize(__dirname);

// Router
dynamo.route('get', '/', function(req, res) {
    res.send('hello world');
});

// Run
dynamo.run();

Twitter Auth

'use strict';

var dynamo = require('../lib/core');

// Initialization
dynamo.initialize(__dirname);

// Router
// Callback: What happens when the user is NOT DEFINED.
// If the user IS DEFINED then it carries on with the redirect
dynamo.twitterAuth(function(token, tokenSecret, profile, done, User) {
    // User does not exist so we create a user
    // Just return NULL so user is not added
    // So we say we're done with the User
    done(null, User.create(profile));
});

// Run
dynamo.run();

There are more examples in the examples folder.

dynamo.js's People

Contributors

abhiagarwal avatar

Stargazers

Hadj H. avatar

Watchers

James Cloos avatar  avatar  avatar

dynamo.js's Issues

Mongo

How are we going to be utilizing Mongo? Do we include it within the Framework or do we expect users to have it? I think we should build it into the Framework

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.