Git Product home page Git Product logo

zinky's People

Contributors

burawi 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zinky's Issues

Generating application Error

Generating application: appName
The syntax of the command is incorrect.
child_process.js:634
throw err;
^

Error: Command failed: mkdir appName/
The syntax of the command is incorrect.

TypeError: Cannot read property 'findOne' of undefined

follow the guide from https://tildah.github.io/zinky/tuto_zongel.html
model.js

zinky -M crud

app_modules\crud\model.js

const Zongel = require("zongel");
 
class Model extends Zongel {
 
  get collectionName() { return "crud" }
 
  get schema() {
    return {
      properties: {
        name: { type: "string" },
        age: { type: "integer" }
      },
      required: ["name"],
      private: ["age"]
    }
  }
 
}
 
module.exports = Model;

app_modules\crud\index.js

const Zinko = require('zinko');

class Crud extends Zinko {
   get useZongel() { return true; }
  async GET_root(req, res) {
//	  console.log(this.model);

    let j = await this.model.findOne({ name: 'rruk' });
    return j
  }
}
 module.exports = Crud;

how disable console log

like in express

   //  this.use(express.logger());

in debug mode output request log to console
in production mode comment log to disable log

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.