Giter Club home page Giter Club logo

generator-restgoose's People

Contributors

acveer avatar afj176 avatar arvindr21 avatar bitdeli-chef avatar erangoldman avatar exocom avatar gitter-badger avatar marcusbuffett avatar nog3 avatar vikz91 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

generator-restgoose's Issues

crash using yo restgoose

 _-----_     ╭──────────────────────────╮
|       |    │   Welcome to the Rapid   │
|--(o)--|    │    Rest API Generator    │

---------´ │ generator-restgoose2! │ ( _´U_ ) ╰──────────────────────────╯
/A\ /
| ~ |
'..'_
´ |° ´ Y

? Database Name myDb
? Database Host localhost
? Database Port 27017
? Database User
? Database Password [hidden]
Reinitialized existing Git repository in /home/burn/nodejs/.git/
events.js:173
throw er; // Unhandled 'error' event
^

AssertionError [ERR_ASSERTION]: Trying to copy from a source that does not exist: /usr/lib/node_modules/generator-restgoose/generators/app/templates/.gitignore
at EditionInterface.exports.copy (/usr/lib/node_modules/generator-restgoose/node_modules/mem-fs-editor/lib/actions/copy.js:48:3)
at EditionInterface.module.exports [as copyTpl] (/usr/lib/node_modules/generator-restgoose/node_modules/mem-fs-editor/lib/actions/copy-tpl.js:29:8)
at module.exports.writing (/usr/lib/node_modules/generator-restgoose/generators/app/index.js:85:21)
at Object. (/usr/lib/node_modules/generator-restgoose/node_modules/yeoman-generator/lib/index.js:424:27)
at /usr/lib/node_modules/generator-restgoose/node_modules/run-async/index.js:25:25
at new Promise ()
at /usr/lib/node_modules/generator-restgoose/node_modules/run-async/index.js:24:19
at self.env.runLoop.add.completed (/usr/lib/node_modules/generator-restgoose/node_modules/yeoman-generator/lib/index.js:425:13)
at processImmediate (timers.js:637:19)
Emitted 'error' event at:
at Immediate.setImmediate (/usr/lib/node_modules/generator-restgoose/node_modules/yeoman-generator/lib/index.js:433:22)
at processImmediate (timers.js:637:19)

grunt error

Running grunt to run the development server throws me an error like below

restgoose-test$ grunt
module.js:550
    throw err;
    ^

Error: Cannot find module 'findup-sync'
    at Function.Module._resolveFilename (module.js:548:15)
    at Function.Module._load (module.js:475:25)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/lib/nodejs/grunt-cli/bin/grunt:8:14)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)

I have also installed all necessary node packages (both local as well as global) for grunt to work.

Any help on this is much appreciated !

Mixed datatype

generator-restgoose having issue to generate Mixed datatype . Any suggestion to fix this ?

'yo restgoose:schema "patient|name:String,gender:String,ic:String,panel:String,priceLevel:Number,arr:Array,mix:Mixed,patientStatus:Boolean,created:Date"'

`Running "express:dev" (express) task
Starting background Express server
E:\EXP-proj\generator-restgoose\models\patient.js:15
mix: { type: Mixed },
^

ReferenceError: Mixed is not defined
at Object. (E:\EXP-proj\generator-restgoose\models\patient.js:15:15)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)`

l.responseCallback is not a function

TypeError: l.responseCallback is not a function
at Object.api.test (/home/it/projects/connectfy/apiObjects/testing.js:116:12)
at router.get (/home/it/projects/connectfy/api/testing.js:219:10)
at Layer.handle [as handle_request] (/home/it/projects/connectfy/node_modules/express/lib/router/layer.js:95:5)
at next (/home/it/projects/connectfy/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/home/it/projects/connectfy/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/home/it/projects/connectfy/node_modules/express/lib/router/layer.js:95:5)
at /home/it/projects/connectfy/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/home/it/projects/connectfy/node_modules/express/lib/router/index.js:335:12)
at next (/home/it/projects/connectfy/node_modules/express/lib/router/index.js:275:10)
at Function.handle (/home/it/projects/connectfy/node_modules/express/lib/router/index.js:174:3)
at router (/home/it/projects/connectfy/node_modules/express/lib/router/index.js:47:12)
at Layer.handle [as handle_request] (/home/it/projects/connectfy/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/it/projects/connectfy/node_modules/express/lib/router/index.js:317:13)
at /home/it/projects/connectfy/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/it/projects/connectfy/node_modules/express/lib/router/index.js:335:12)
at next (/home/it/projects/connectfy/node_modules/express/lib/router/index.js:275:10)

the error is the body at http://localhost:3000/api/xxxxx/test

Reference object

Hi,
This seems to be the best API generator. However, can you help me on how to declare references between models through runtime ? Like I have users as a model which I want to reference it to employee model.

Object name error

The object name for POST as mentioned in the tutorial isn't the "article"
Rather, it never works with the following JSON during HTTP POST,

{
   "article":{
 "content": "Content here 3"
}
}

Throws me the following error for the above request

{
    "status": "error",
    "data": "Invalid data model provided",
    "message": "There was an error saving this data."
}

On the other hand, if I change the request to be like ,

{
	"data":{
  "content": "Content here 3"
}
}

I get a proper response from the server back,

{
    "status": "success",
    "data": {
        "_id": "5bfc32d8f21e822d804c6ec3",
        "content": "Content here 3",
        "created": "2018-11-26T17:52:24.098Z",
        "__v": 0
    },
    "message": null
}

Isn't this contradictory to what is shown in the tutorial or the ReadMe description ?
I had figured this out, from the test cases that is auto generated. 👍 for this feature

JWT support

Hi. Can you please show how to use JWT which come pre-loaded with 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.