Giter VIP home page Giter VIP logo

Comments (8)

mikeal avatar mikeal commented on July 19, 2024

I fucked up the docs app.route('/').files(PUBLIC) should be app.route('/*').files(PUBLIC)

from tako.

mikeal avatar mikeal commented on July 19, 2024

i'll work on adding a notfound API, i'll need one pretty soon.

from tako.

DTrejo avatar DTrejo commented on July 19, 2024

thanks for the super fast response :)

from tako.

DTrejo avatar DTrejo commented on July 19, 2024

Also, super minor, but it would be great if tako.version returned the version number from the package.json.

Like this:

 module.exports = function (options) {
   return new Application(options)
 }
+module.exports.version = require('./package.json').version
 exports.globalMiddles = {}

If it's easier, I can send a pull request.

from tako.

dscape avatar dscape commented on July 19, 2024

That will only work on 0.6+. readFileSync and JSON.parse work in 0.4+

from tako.

DTrejo avatar DTrejo commented on July 19, 2024

@mikeal Note that in order to get the index.html file to serve from '/', I had to add this:

+app.route('/').file(PUBLIC)
app.route('/*').files(PUBLIC)

from tako.

mikeal avatar mikeal commented on July 19, 2024

@DTrejo that's a bug, we should fix that.

@dscape tako should only be expected to work on 0.6.

from tako.

DTrejo avatar DTrejo commented on July 19, 2024

Also would be cool to link to a "built with tako" wiki page from the readme.

Check out the code for the tako app I have "in production"
http://downsound.jit.suhttps://github.com/DTrejo/down-sound/blob/master/server.js
Note: some of it is a bit repetitive b/c of open issues, but try to ignore it :)

from tako.

Related Issues (13)

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.