Code Monkey home page Code Monkey logo

carcass's People

Contributors

frankdou avatar makara avatar viciouspotato avatar xeodou avatar zbal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

carcass's Issues

Log integration

Need to add the ability to carcass to log things; eventually allowing to:

  • have a different backend for log storage: ex. syslog, file, logstash (can look at existing libraries)
  • define log verbosity

Unless argued differently it should be in a separate module, not in carcass core; see carcass-auth for more details.

Properly document the code and include the various required readme to integrate with a regular carcass project.

Complete Model

  • Make it usable, with the common methods.
  • Class or factory doesn't make a difference, so I'm not sure yet..
  • Underscore methods are nice to have.

Carcass executable

What do you think about creating a carcass executable which permits to :

  • generate a carcass app
  • generate a carcass sample app
  • running the server in development with supervisor
  • ...

Auth: Github

Please reassign to the one work on this.

The module carcass-auth is in this repo for now. The one who's working on this will need the permission.

Details:

  • Please build and send me pull requests.
  • Please use passport-github.
  • I only need the login process. Please do not consider session supports.
  • Note that the login process involves 3 characters: client, server and Github. You'll need to setup Github first and simulate the client with tests.
  • Build an auth plugin in /auth and optionally a test application in /test/fixture/applications to expose some test info.
  • The client will need to be redirected and input info on Github. It's not easy to do it with tests so you can test it manually and then do it with tests. Not that the test is a requirement.

Confusion about carcass

I still don't understand what carcass is and what does it do. Would you please help me out?

1. What is carcass?

Is it basic infrastructure for our future web servers? How should it be used? like in ./fixture? is there any code demonstrating the use cases?

I saw carcass-auth but that doesn't help.

I hope there is some picture or sth describes the carcass architecture.

2. What is an application?

Is it some kind of middleware? I can't see what they're used for. Are they designed to run separately? since they seem to use separate express objects.

3. What is a Model?

I can't see where are they used.

4. What's the relation between constructors/Server, factories/Express and servers/Http?

I can see servers/Http extends constructors/Server, but what about constructors/Server and factories/Express?

Of course factories/Express seems to be a factory but I doubt if they have conflicting responsibilities since I see they both use express internally.

5. What does plugin means here? I'm especially confused when I see

    var plugin = this.getApplication(title);

so application is plugin?

Anyway, even I wrote some tests, I'm still totally confused. Sorry for that.

More tests

  • Tests should cover everything.
  • Tests should be name-spaced.
  • Some of the tests need to be name-spaced as usecase or something because they are actually use cases.
  • Please fork and send me pull requests.

Build a test for the Express factory

Maybe it can make your life easier if you understand the Express factory. Please do this by building a test for it, in factories.express.mocha.js.

The test should cover:

  • Use the factory to get a builder which is a function.
  • Use the builder to get an application which is an Express application.
  • Initialize function.
  • args and options.

Rebuild "Server"

Please do this in a new branch (not the same as for the tests).

Currently we have 2 main approach of organizing code: inheritance and factory. Application is using factory, server and model are using inheritance. I'd like to rebuild the server to be a factory, which means for example:

  • Server is an abstract factory (currently a constructor), returns a concrete factory.
  • http and https are concrete factories (currently constructors extended from Server), return server instances.

This doesn't make it more flexible, but more strict.

What do you think of this change? And do you think you can do this?

Create a Google Group or Mail List

Hi,

Sorry, been out of the loop last few weeks dealing with interviews. Do we have a google group or anything to coordinate those who want to work on Carcass but are not actively working with devo-ps? I'm writing up an example application now to use Carcass, but once I'm done I'd like to ask for feedback outside issues for Carcass itself.

Improve utils.machineName

Hi @xeodou,

Can you help me improve carcass.utils.machineName? The first things:

  • TODOs in it. Please input proper error messages.
  • Please replace _.isFunction() and _.isString() with typeof testings and remove underscore from the file.

Please send me pull requests. Thanks.

Improve CORS example

  • Please rename testSession application to login, also change the title and debug info.
  • Please use passport local to login. Note that a login should be a POST.
  • Please remove /member and:
    • Add another application model.
    • Add 2 endpoints: PUT and GET, to save and read a model.
    • Use memory storage to store the model.
    • Make sure all the things there require login.

Move small little feather to unit npm module.

I think we can move the small feather to small module, and use npm to include into carcass. Sometimes if i just want to use a feather like carcass in a small module, carcass is too big for me.

Build a test for mixin()

Hi,

I just made some change to the mixin() function, and realized we don't have enough tests for it; only one in carcass.mocha.js and a use case in usecase.eventEmitter.mocha.js.

Please build a new test carcass.mixable.mocha.js with the following:

  • An object or a function can be mixable and the others cannot (not sure about array, you tell me).
  • A mixable target can mixin from an object or a function, not from the others.
  • The prototype of the target is also mixable.
  • Only enumerable properties can be merged.

Note that some of your tests can fail because there can be bugs. Please also try to fix it.

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.