Git Product home page Git Product logo

crest's Introduction

crest's People

Contributors

cordazar avatar vinayh 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  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  avatar  avatar  avatar  avatar

Watchers

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

crest's Issues

Install failed

I try to install and I get the below error(s):

H:\crest>npm install crest -g

[email protected] install C:\Users\KBurton\AppData\Roaming\npm\node_module
s\crest\node_modules\restify\node_modules\dtrace-provider
node-gyp rebuild

C:\Users\KBurton\AppData\Roaming\npm\node_modules\crest\node_modules\restify\nod
e_modules\dtrace-provider>if not defined npm_config_node_gyp (node "C:\Program F
iles\nodejs\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\n
ode-gyp.js" rebuild ) else (node rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Python executable "python" is v2.4.2, which is not support
ed by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & <
3.0.0.
gyp ERR! stack at failPythonVersion (C:\Program Files\nodejs\node_modules\np
m\node_modules\node-gyp\lib\configure.js:121:14)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\configure.js:110:9
gyp ERR! stack at ChildProcess.exithandler (child_process.js:194:7)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at maybeClose (internal/child_process.js:818:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces
s.js:211:5)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodej
s\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\KBurton\AppData\Roaming\npm\node_modules\crest\node_module
s\restify\node_modules\dtrace-provider
gyp ERR! node -v v4.1.2
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok

[email protected] install C:\Users\KBurton\AppData\Roaming\npm\node_modules\crest\nod
e_modules\mongodb\node_modules\bson
(node-gyp rebuild 2> builderror.log) || (exit 0)

C:\Users\KBurton\AppData\Roaming\npm\node_modules\crest\node_modules\mongodb\nod
e_modules\bson>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs
\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js"
rebuild ) else (node rebuild )
npm WARN optional dep failed, continuing [email protected]
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs
node_modules\npm\bin\npm-cli.js" "install" "crest" "-g"
npm ERR! node v4.1.2
npm ERR! npm v2.14.4
npm ERR! path C:\Users\KBurton\AppData\Roaming\npm\node_modules\crest\bin\server

npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod 'C:\Users\KBurton\AppDa
ta\Roaming\npm\node_modules\crest\bin\server'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR! H:\crest\npm-debug.log

One of the first errors is that the Python version needs to be updated. Is this a dependency?

Kevin

How can i authorization the rest api?

I using,

Client Request
|
python http server
|
access authorization <- MongoDB (check user table)
|
template system
|
bootstrap-table pages
|
crest service
|
MongoDB(operate data)

The page returned by python service with access authorization check.
And then the bootstrap-table pages are directly connecting to MongoDB via crest service.
The question is how can i do the access controller?

I googled say than using basic-auth/oauth1.0a/oauth2.0/...
But in my case, (already have authorization check with python service), what is the right way?

Installation issues

C:\node_modules\bin\cattle_test>npm install crest -g

[email protected] install C:\Users\Mishika\AppData\Roaming\npm\node_modules\crest\nod
e_modules\mongodb\node_modules\bson
(node-gyp rebuild 2> builderror.log) || (exit 0)

C:\Users\Mishika\AppData\Roaming\npm\node_modules\crest\node_modules\mongodb\nod
e_modules\bson>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs
\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js"
rebuild ) else (node rebuild )
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe".
To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visua
l Studio 2005 or 3) add the location of the component to the system path if it
is installed elsewhere. [C:\Users\Mishika\AppData\Roaming\npm\node_modules\cre
st\node_modules\mongodb\node_modules\bson\build\binding.sln]

[email protected] install C:\Users\Mishika\AppData\Roaming\npm\node_module
s\crest\node_modules\restify\node_modules\dtrace-provider
node-gyp rebuild

C:\Users\Mishika\AppData\Roaming\npm\node_modules\crest\node_modules\restify\nod
e_modules\dtrace-provider>if not defined npm_config_node_gyp (node "C:\Program F
iles\nodejs\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\n
ode-gyp.js" rebuild ) else (node rebuild )
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe".
To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visua
l Studio 2005 or 3) add the location of the component to the system path if it
is installed elsewhere. [C:\Users\Mishika\AppData\Roaming\npm\node_modules\cre
st\node_modules\restify\node_modules\dtrace-provider\build\binding.sln]
gyp ERR! build error
gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules
npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces
s.js:200:12)
gyp ERR! System Windows_NT 6.1.7600
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodej
s\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Mishika\AppData\Roaming\npm\node_modules\crest\node_module
s\restify\node_modules\dtrace-provider
gyp ERR! node -v v4.3.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN optional dep failed, continuing [email protected]
npm ERR! Windows_NT 6.1.7600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs
node_modules\npm\bin\npm-cli.js" "install" "crest" "-g"
npm ERR! node v4.3.1
npm ERR! npm v2.14.12
npm ERR! path C:\Users\Mishika\AppData\Roaming\npm\node_modules\crest\bin\server

npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod 'C:\Users\Mishika\AppDa
ta\Roaming\npm\node_modules\crest\bin\server'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR! C:\node_modules\bin\cattle_test\npm-debug.log

Npm Global Install Fails

I get the following error when I use npm install crest - g:

json-at-work => npm install crest -g
npm ERR! Darwin 15.5.0
npm ERR! argv "/Users/tmarrs/.nvm/v4.2.2/bin/node" "/Users/tmarrs/.nvm/v4.2.2/bin/npm" "install" "crest" "-g"
npm ERR! node v4.2.2
npm ERR! npm  v3.3.10
npm ERR! path /Users/tmarrs/.nvm/v4.2.2/lib/node_modules/crest/bin/server
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/tmarrs/.nvm/v4.2.2/lib/node_modules/crest/bin/server'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/tmarrs/projects/json-at-work-examples/npm-debug.log

It looks like the chmod is happening before the server.js file exists.
I've installed Node with NVM, but that shouldn't matter.

But the git clone install works great. Thanks for this excellent module, but please fix the npm global install issue.

Crest API installation Issue

Please find the error below

C:\node_modules>npm install crest

[email protected] install C:\node_modules\crest\node_modules\mongodb\node_modules\bso
n
(node-gyp rebuild 2> builderror.log) || (exit 0)

C:\node_modules\crest\node_modules\mongodb\node_modules\bson>if not defined npm_
config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin
....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )

[email protected] install C:\node_modules\crest\node_modules\restify\node_
modules\dtrace-provider
node-gyp rebuild

C:\node_modules\crest\node_modules\restify\node_modules\dtrace-provider>if not d
efined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\n
ode-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node
rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT
HON env variable.
gyp ERR! stack at failNoPython (C:\Program Files\nodejs\node_modules\npm\nod
e_modules\node-gyp\lib\configure.js:116:14)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\configure.js:71:11
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 6.1.7600
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodej
s\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\node_modules\crest\node_modules\restify\node_modules\dtrace-prov
ider
gyp ERR! node -v v4.3.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN optional dep failed, continuing [email protected]
npm ERR! Windows_NT 6.1.7600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs
node_modules\npm\bin\npm-cli.js" "install" "crest"
npm ERR! node v4.3.1
npm ERR! npm v2.14.12
npm ERR! path C:\node_modules\crest\bin\server
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod 'C:\node_modules\crest
bin\server'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR! C:\node_modules\npm-debug.log

Feature request: add an API authorization key

It would be useful to add a simple API key authorization option for Crest. This could be included as a parameter or an Authorization Token header. If enabled, requests to the API would need to include this auth key in order to use it.

npm install exits with Error: ENOENT, chmod ...

Hi there, I tried installing crest on my digital ocean ubuntu box and got the following error:

npm ERR! Error: ENOENT, chmod '/usr/lib/node_modules/crest/bin/server'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "node" "/usr/bin/npm" "install" "crest" "-g"
npm ERR! cwd /root
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.26
npm ERR! path /usr/lib/node_modules/crest/bin/server
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /root/npm-debug.log
npm ERR! not ok code 0

I tried googling the problem and stumbled upon a stackoverflow question with this as the chosen answer:

Ok it looks like NPM is using your .gitignore as a base for the .npmignore file, and thus ignores /lib. If you add a blank .npmignore file into the root of your application, everything should work.

[edit] - more info on this behaviour here: https://npmjs.org/doc/developers.html#Keeping-files-out-of-your-package

Please see http://stackoverflow.com/questions/17990647/npm-install-errors-with-error-enoent-chmod for details on the question.

Also, Digital Ocean defaults to root access login on Ubuntu boxes. Don't know if this might be relevant.

Thanks.

Filter contains

I'm trying to filter data by name, but just contain.
For example, i have in DB, 2 rows with name:"delta" and "delt", so I want to show all rows that contains "del"
Do you know how?

Always an error when I try to install

I try to install Crest on my laptop for local testing.
I'm running on an Ubuntu 13.10 machine.
I get this error:

# sudo npm install crest -g
.........
npm http 304 https://registry.npmjs.org/extsprintf/1.0.0

> [email protected] install /usr/local/lib/node_modules/crest/node_modules/restify/node_modules/dtrace-provider
> node-gyp rebuild

make: Entering directory `/usr/local/lib/node_modules/crest/node_modules/restify/node_modules/dtrace-provider/build'
  TOUCH Release/obj.target/DTraceProviderStub.stamp
make: Leaving directory `/usr/local/lib/node_modules/crest/node_modules/restify/node_modules/dtrace-provider/build'
npm ERR! Error: ENOENT, chmod '/usr/local/lib/node_modules/crest/bin/server'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.13.5-031305-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "crest" "-g"
npm ERR! cwd /home/artheus
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /usr/local/lib/node_modules/crest/bin/server
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/artheus/npm-debug.log
npm ERR! not ok code 0

Seems like the crest/bin/server is not even created. I have tried running as root, with sudo and in a local project folder. Same error every time.

Fail to connect with authentication

I installed and configured the app, here is my configuration:

{
    "db": {
        "port": 27017,
        "host": "10.10.1.61",
        "username": "MyUser",
        "password": "password"
    },
    "server": {
        "port": 54321,
        "address": "0.0.0.0"
    },
    "flavor": "normal",
    "debug": true
}

Server started on 10.10.1.23, and I'm doing requests from 10.10.1.5.
But server responds with:

{
    "code": "InternalError"
    "message": "Cannot read property 'collection' of null"
}

Problem is in`connectionURL function defined in /lib/util.js

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.