Giter Club home page Giter Club logo

typeframework's Introduction

Welcome to TypeFramework

TypeFramework is a MVC Web Framework that makes it easy to build enterprise-grade NodeJS apps using TypeScript.

NPM version Build Status

Installation

Install the latest stable release of TypeFramework:

$ sudo npm install -g typeframework-cli

Note: Don’t use sudo if you’re using Windows.

Create a New TypeFramework Project

Create a new app:

$ tfw new testProject

Run your app:

$ cd testProject
$ tfw start

And Voilà, your application has started. Visit http://localhost:3000 and you should see the default homepage.

View Live Examples

You can also view live examples here:

Team

TypeFramework is actively built and maintained by Zeke Kievel

License

MIT License

Copyright © 2012-2014 Le Vu (Zeke Kievel)

typeframework's People

Contributors

zekelevu avatar

Stargazers

Eren Birk avatar Yasin ATEŞ avatar Nick avatar Razvan Dumitru avatar  avatar Julian David avatar Byungjik Roh avatar Habibie Ed Dien avatar Slawa Pidgorny avatar 大鼻子 avatar Kyle Johnson avatar Porawit Poboonma avatar Vladimir Bloshchitsyn avatar David Totrashvili avatar Claudio Giordano avatar Lok Chun Wai avatar mmohl avatar 杜鹏 avatar Rodrigo Barbosa avatar R.J. (Steinert) Corwin avatar Maksymilian Majer avatar Wade Deng avatar Alberto Fernández avatar Sergiu Butnarașu avatar Alex avatar Wendell Muntslag van Amzink avatar Tyler Peckenpaugh avatar Lei Xiao avatar MattWilliams avatar Odirlei Borgert avatar Ketut Sandiarsa avatar Eddie Hinkle avatar nnecec avatar Victor Teixeira avatar xialvjun avatar Mike Burton avatar Denis Tokarev avatar yzh avatar UchMan avatar justin kadima avatar John avatar Ricard Gascons avatar daniel baak avatar  avatar Nathan Selvidge avatar Humberto Machado avatar  avatar Dario Cangialosi avatar Juan Manuel Alberro avatar Rafa Morais avatar Dariusz Filipiak avatar Jason Barbee avatar Nick Ovchinnikov avatar BeA avatar Alessandro Muresan avatar Constance Li avatar Harry avatar Jean Lopes avatar Oleg avatar Luke Paris avatar 김정환 avatar vizo avatar Ivona Grubešić avatar Bnaya Peretz avatar Wayne 王維靖 avatar ddw avatar benny avatar Constantino Gomes avatar Brad Pillow avatar Nguyen Trung Loi avatar Christoph Ott avatar abdul dakkak avatar Kévin Gossé avatar Christian Eikermann avatar Erhan Abibula avatar Aleksandr Denisov avatar Terence Bezman avatar Angus H. avatar Gary Lo avatar Simon Gausmann avatar Kyle Cannon avatar Frederico Galvão avatar  avatar Ramin ALirezaee avatar Tommaso Ricci avatar Antonio Angelino avatar Luigi Bifulco avatar Itsuki Hayashi avatar Ricki Runge avatar vvnab avatar Filip Dupanović avatar ibrahim avatar John Coleman avatar Umed Khudoiberdiev avatar sophon avatar Chris Hart avatar  avatar Vadorequest avatar Mariano Pardo avatar  avatar

Watchers

arden avatar Facundo Cabrera avatar 大鼻子 avatar send2vinnie avatar Yeye Balam avatar Paul avatar Antonio Sandoval avatar James Cloos avatar Sam Morreel avatar Peter A. Pirc avatar Gary Lo avatar Vaishak Salin avatar Slawa Pidgorny avatar Menjanahary avatar Aleksandr Denisov avatar  avatar Wédney Yuri avatar  avatar  avatar

typeframework's Issues

Error when I run tfw start

When I run the command tfw start, I've an error :

vector.release();
TypeError: undefined is not a function

The full output of the command is :

util.print: Use console.log instead
Running "ts:build" (ts) task
util.print: Use console.log instead
Compiling...
util.print: Use console.log instead
Fast compile will not work when --out is specified. Ignoring fast compilation
util.print: Use console.log instead
Using tsc v1.0.1
util.print: Use console.log instead
/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:906
                        vector.release();
                               ^
TypeError: undefined is not a function
    at BitMatrixImpl.release (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:906:32)
    at PullInstantiatedTypeReferenceSymbol.PullTypeSymbol.wrapsSomeTypeParameterIntoInfinitelyExpandingTypeReference (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:38021:26)
    at PullInstantiatedTypeReferenceSymbol.getGenerativeTypeClassification (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:56587:30)
    at PullTypeEnclosingTypeWalker.getGenerativeClassification (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:38846:36)
    at PullTypeResolutionContext.oneOfClassificationsIsInfinitelyExpanding (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:39598:71)
    at PullTypeResolver.sourceIsRelatableToTargetInEnclosingTypes (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:48151:29)
    at PullTypeResolver.signatureIsRelatableToTargetWorker (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:48818:52)
    at PullTypeResolver.signatureIsRelatableToTarget (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:48776:36)
    at PullTypeResolver.signatureGroupIsRelatableToTarget (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:48743:61)
    at PullTypeResolver.sourceCallSignaturesAreRelatableToTargetCallSignatures (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:48590:27)
    at PullTypeResolver.sourceIsRelatableToTargetWorker (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:48329:23)
    at PullTypeResolver.sourceIsRelatableToTarget (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:48305:36)
    at PullTypeResolver.sourceIsRelatableToTargetInEnclosingTypes (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:48156:25)
    at PullTypeResolver.sourcePropertyIsRelatableToTargetProperty (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:48559:66)
    at PullTypeResolver.sourceMembersAreRelatableToTargetMembers (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:48368:27)
    at PullTypeResolver.sourceIsRelatableToTargetWorker (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:48325:46)
    at PullTypeResolver.sourceIsRelatableToTarget (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:48305:36)
    at PullTypeResolver.sourceIsRelatableToTargetInEnclosingTypes (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:48156:25)
    at /home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:48831:52
    at PullInstantiatedSignatureSymbol.PullSignatureSymbol.forAllCorrespondingParameterTypesInThisAndOtherSignature (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:36729:22)
    at PullTypeResolver.signatureIsRelatableToTargetWorker (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:48829:30)
    at PullTypeResolver.signatureIsRelatableToTarget (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:48776:36)
    at PullTypeResolver.signatureGroupIsRelatableToTarget (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:48743:61)
    at PullTypeResolver.sourceCallSignaturesAreRelatableToTargetCallSignatures (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:48590:27)
    at PullTypeResolver.sourceIsRelatableToTargetWorker (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:48329:23)
    at PullTypeResolver.sourceIsRelatableToTarget (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:48305:36)
    at PullTypeResolver.sourceIsRelatableToTargetInEnclosingTypes (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:48156:25)
    at PullTypeResolver.sourcePropertyIsRelatableToTargetProperty (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:48559:66)
    at PullTypeResolver.sourcePropertyIsAssignableToTargetProperty (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:48085:69)
    at PullTypeResolver.typeCheckIfTypeExtendsType (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:50257:45)
    at /home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:50427:34
    at Function.PullTypeResolver.typeCheck (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:49358:21)
    at TypeScriptCompiler.getSemanticDiagnostics (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:55508:41)
    at CompilerIterator.moveNextSemanticsPhase (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:56137:45)
    at CompilerIterator.moveNextInternal (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:56087:33)
    at CompilerIterator.moveNext (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:56062:25)
    at BatchCompiler.compile (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:62412:20)
    at BatchCompiler.batchCompile (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:62251:22)
    at TypeScript (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:62928:11)
    at Object.<anonymous> (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc.js:62929:3)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/home/toni/Documents/ts/framework/testProject/node_modules/grunt-ts/node_modules/typescript/bin/tsc:2:1)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3
util.print: Use console.log instead

util.print: Use console.log instead
>> Error: tsc return code: 1
util.print: Use console.log instead
Warning: Task "ts:build" failed. Use --force to continue.
util.print: Use console.log instead

util.print: Use console.log instead
Aborted due to warnings.
util.print: Use console.log instead

util.print: Use console.log instead
npmutil.print: Use console.log instead
 util.print: Use console.log instead
ERR!util.print: Use console.log instead
 Linux 3.16.0-34-generic
util.print: Use console.log instead
npmutil.print: Use console.log instead
 ERR!util.print: Use console.log instead
 argvutil.print: Use console.log instead
 "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR!util.print: Use console.log instead
 node v0.12.2
util.print: Use console.log instead
npm util.print: Use console.log instead
ERR! util.print: Use console.log instead
npm util.print: Use console.log instead
 v2.7.4
npm ERR! codeutil.print: Use console.log instead
 ELIFECYCLE
util.print: Use console.log instead
npmutil.print: Use console.log instead
 ERR!util.print: Use console.log instead
 [email protected] prestart: `node node_modules/grunt-cli/bin/grunt`
npm util.print: Use console.log instead
ERR! Exit status 3
util.print: Use console.log instead
npm ERR! 
util.print: Use console.log instead
npm ERR!util.print: Use console.log instead
 Failed at the [email protected] prestart script 'node node_modules/grunt-cli/bin/grunt'.
util.print: Use console.log instead
npm ERR!util.print: Use console.log instead
 This is most likely a problem with the my-app package,
npm util.print: Use console.log instead
ERR! not with npm itself.
npmutil.print: Use console.log instead
 ERR!util.print: Use console.log instead
 Tell the author that this fails on your system:
npm util.print: Use console.log instead
ERR!     node node_modules/grunt-cli/bin/grunt
npm ERR! You can get their info via:
npm ERR!     npm owner ls my-app
npm ERR! There is likely additional logging output above.
util.print: Use console.log instead

util.print: Use console.log instead
npm util.print: Use console.log instead
ERR! Please include the following file with any support request:
npm ERR!     /home/toni/Documents/ts/framework/testProject/npm-debug.log
util.print: Use console.log instead
child process exited with code 1

Add tfw watch command

Hi Zeke,

Feature request: Can you please add a "tfw watch" command that will basically use grunt watch to compile .ts files on file changes and restart the app?

Thanks!

Model 'save' cannot be used like the doc says

var user = new User('John', '[email protected]');
user.save((err) => {
    // callback
});

This code (from the doc) does not work.
Should be written :

User.save(user, (err) => {
    // callback
});

Could you add, the orginal way in Waterline and maybe upgrade to 0.10.x as it's a little bit different from 0.9.x

Testing with Mocha

Hi,

I need some guidance on creating mocha tests for a Typeframework application. How do I access the controllers and other objects from the app.js file in a test? Can you please provide an example?

Thanks!

The project doesn't start

arjun@arjun-300E4A-300E5A-300E7A-3430EA-3530EA:~/Documents/type_script/typeframework-master$ tfw start
(node) util.print is deprecated. Use console.log instead.

[email protected] start /home/arjun/Documents/type_script/typeframework-master
grunt

Running "ts:build" (ts) task
Compiling...
Cleared fast compile cache for target: build
Fast compile will not work when --out is specified. Ignoring fast compilation
Using tsc v1.0.1

TypeScript compilation complete: 7.93s for 1 typescript files

Running "file_append:tf" (file_append) task

Done, without errors.

It is start but port not open to serve request .

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.