Giter Club home page Giter Club logo

sane's Introduction

## SANE Stack [![Bountysource][bounty-badge]][bounty-badge-url] [![Gitter][gitter-badge]][gitter-badge-url]

Build Status Build status Dependency Status npm

NOTE: This project, while exciting, is still an early prototype. While being mostly stable it is still being iterated with feature changes and improvements fairly regularly.

Sane - A Javascript fullstack and cli that uses two of the best frameworks, Sails and Ember, so you can rapidly create production-ready web applications. It takes away all the hassle setting up the full backend and frontend environment, embracing convention-over-configuration all the way, so you can focus just on shipping your app. Additionally this cli also supports Docker, using Docker Compose, to automatically install dependencies such as your database and will make deployment easier.

Quickstart:

  • npm install -g sails sane-cli
  • sane new project creates a local project with sails-disk. To install with Docker and production databases see Options.
  • sane generate resource user name:string age:number to generate a new API on the backend and models on the frontend
  • sane up to start the sails server on localhost:1337 as well as the ember dev server on localhost:4200.
  • To work on your frontend-app you work as you would normally do with ember-cli on localhost:4200.
  • You are now good to go.

Note: If you use Docker, make sure you have Docker Compose installed.

On Mac or Windows Docker Toolbox is required. This will install all of the necessary Docker tooling, including VirtualBox.

For Linux see: https://docs.docker.com/installation/ubuntulinux/

Documentation

The full documentation is available at: http://sanestack.com/

Development

sane-cli is developed with ES6/7 functionality, using traceur to provide a cleaner code as well as a nice experience for us the developers. To get started:

  • git clone https://github.com/artificialio/sane.git
  • cd sane && npm install to install the dependencies
  • npm link to make sure you can test the master version globally
  • If you add a new feature an according test would be appreciated
  • npm test to run the test-suite

Thanks

Thanks to mphasize for creating sails-generate-ember-blueprints which overwrites the default SailsJS JSON response to the one that Ember Data's RESTAdapter and RESTSerializer expects. Thanks to sails for that great backend framework Thanks to ember-cli contributors for all the great effort that has gone into this product and from which I have taken a lot of inspiration and code, especially in regards to testing.

License

SANE Stack is MIT Licensed.

Built by

Built with love by Artificial Labs and contributors <3

sane's People

Contributors

albertosouza avatar codepreneur avatar crunchtime-ali avatar devinrhode2 avatar gitter-badger avatar globegitter avatar hmaurer avatar ianvs avatar jamemackson avatar jlanstrom avatar johnnybridges avatar joshbeitler avatar mgenev avatar micahjon avatar okket avatar robbyoconnor avatar rynam0 avatar systho 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  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

sane's Issues

First release 1.0.0

As more and more people are starting to use sane stack, more and more features are getting clear.
Few things that are planned before we go into beta, roughly in order of priority:

  • Fix the tests on Travis. #38
  • Disable analytics for Tests. #39
  • Add some more unit/acceptance tests. Related: #14 @joshbeitler might help out here?
  • Have a define way for authorization and implement it as an addon (see below).
  • Define a way to install/remove addons, can be for the frontend (such as sass), the backend (such as ES6/7 support) or fullstack, such as authentication. Possible proposed commands: sane addon install and sane addon remove. npm should certainly be utilized for that. @joshbeitler @albertosouza showed some interest in that. Related: #10
  • Improve synchronisation of models between backend and frontend. Related: #47 #48
  • Think about making docker as default with a better db (postgres or mongo?)
  • Make sure all works stable with docker and fig setup
  • Add a sane deploy command, possibly also implemented via addons to be able to have multiple deployment strategies (Also see https://github.com/jwilder/docker-gen, https://github.com/deis/deis and https://github.com/tj/deploy, https://github.com/Unitech/pm2-deploy)
  • Add possibility to have multiple backend and frontend folders for microservice style
  • Make ember-cli a local dependency so it is not needed globally and to have better control over versions and even allow branches, such as stable, beta, etc. Related: #16
  • Add sails (for docker-less) a local dependency

Any contributors interested in implementing any of these improvements are more than welcome. Just get in touch with me on https://gitter.im/artificialio/sane and we can talk about the details etc.

Create version tags whenever publishing to NPM

I just noticed that there are no tags. Typically, whenever you have a release, of any kind, there's a tag applied to allow easy diffing between version releases, and other branches. For instance: v0.0.10 would have been the latest tag. It can also help when authoring a CHANGELOG.md.

General problem

Hi all,

First of all i am a new webdeveloper, and have not much experience with sails.js or ember.js.

I installed sane, as suggested on the sane webpage. Everything works fine, however when i run "sane up" i get the following output when i try to connect.

server |
server | �[32minfo: �[39m�[90mStarting app...�[39m
server |
client | version: 0.1.4
server | �[32minfo: �[39m
server | �[32minfo: �[39m
server | �[32minfo: �[39m Sails <|
server | �[32minfo: �[39m v0.10.5 |
server | �[32minfo: �[39m /|.
server | �[32minfo: �[39m / ||
server | �[32minfo: �[39m ,' |'
server | �[32minfo: �[39m .-'.-==|/_--'
server | �[32minfo: �[39m --'-------' server | �[32minfo: �[39m __---___--___---___--___---___--___ server | �[32minfo: �[39m ____---___--___---___--___---___--___-__ server | �[32minfo: �[39m server | �[32minfo: �[39mServer lifted in/home/agent/Development/bdproject/server`
server | �[32minfo: �[39mTo see your app, visit �[4mhttp://localhost:1337�[24m
server | �[32minfo: �[39mTo shut down Sails, press + C at any time.
server | �[37m�[39m
server | �[34mdebug: �[39m�[90m--------------------------------------------------------�[39m
server | �[34mdebug: �[39m�[90m:: Mon Dec 08 2014 21:18:35 GMT+0100 (CET)�[39m
server | �[37m�[39m
server | �[34mdebug: �[39mEnvironment : development
server | �[34mdebug: �[39mPort : 1337
server | �[34mdebug: �[39m�[90m--------------------------------------------------------�[39m
client | Could not find watchman, falling back to NodeWatcher for file system events
client | Proxying to 127.0.0.1:1337
client | Livereload server on port 35729
client | Serving on http://0.0.0.0:4200/
client |
client | Build successful - 869ms.
client |
client | Slowest Trees | Total
client | -------------------------------+----------------
client | EsnextFilter | 214ms
client | Concat | 132ms
client | EsnextFilter | 114ms
client | ES6Concatenator | 59ms
client | JSHint - App | 57ms
client | ES3SafeFilter | 51ms
client |
client |
client | Error: connect EINVAL
client | at errnoException (net.js:904:11)
client | at connect (net.js:766:19)
client | at net.js:845:9
client | at asyncCallback (dns.js:68:16)
client | at Object.onanswer as oncomplete

When i reload the page, the page is not loaded anymore. Could you please give me some pointers how to resolve this. And if its a bug i am glad i could help :)

Greetings,

Mbwe

error in generate new project in linux fedora 21

I instaled sails, sane-cli and ember-cli and in the next step to create my app it shows this error:

sane new greatproject
ENOENT, no such file or directory '/usr/bin/lib/node_modules/sane-cli/package.json'

EHOSTUNREACH error when visiting emberpage

WIth a simple project ember seems to crash when url is visited. I really don't know the reason for this this is the error I get. Thanks!

client | Error: connect EHOSTUNREACH
client | at errnoException (net.js:904:11)
client | at connect (net.js:766:19)
client | at net.js:845:9
client | at asyncCallback (dns.js:68:16)
client | at Object.onanswer as oncomplete

Refactor all the things

General refactor needed plus learned a lot about spawning processes, running commands + asynchronous behaviour, so refactor everything.

In more detail:
This includes splitting functions that are on top of files into separate files, removing/minimizing dependencies, removing/rewriting code that is not necessary anymore due to async await and spawn (if any)

Autoreload server on file change

Hello,

it's quite annoying to have to restart sane every time we change a server file.
Would it be possible to use the watcher already present for the client with the server files ?

There is a sails hook here providing this feature but it does not seem to work with sane : https://github.com/sgress454/sails-hook-autoreload

I'm really new to Javascript on server and Node.js so I do not feel confident enough to work on a PR or even evaluate the amount of work it would require but I would love not going to my console to restart sane every time my server changes

Add local dependencies for sails, ember-cli and sane-cli

This seems to be the preferred way of doing things that could simplify the install to npm i -g sane-cli (if docker is not used), but would add an additional package.json

The other alternative would be to use the postinstall hook, having a script that checks for sails and ember-cli to be present, otherwise it instlalls it.

Look into ember serve EHOSTUNREACH issue

Sometimes you seem to get the bug:

client   | Error: connect EHOSTUNREACH
client   |     at errnoException (net.js:904:11)
client   |     at connect (net.js:766:19)
client   |     at net.js:845:9
client   |     at asyncCallback (dns.js:68:16)
client   |     at Object.onanswer [as oncomplete] (dns.js:121:9)

Source of error has not been identified yet, seems to happen quite randomly so far.

web dev console shows:

WebSocket connection to 'ws://0.0.0.0:35729/livereload' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

camelcase root name of json entity on multi word models

Hi,

i am having a problem, with a model that is called like : modelName.
Currently in sane stack blueprints, the root name in json for that model is modelname, but ember expects modelName. is something badly configured in my end ?

strangelly, if that same model is in json as an association, it is as modelName.

One workaround i did was creating a model.emberName in models and then, on the function emberizeJSON of blueprints, use that:

emberizeJSON: function ( model, records, associations, sideload ) {
    sideload = sideload || false;

    var plural = Array.isArray( records ) ? true : false;
    var hasEmberName = typeof model.emberName !== 'undefined';
    var emberName = hasEmberName ? model.emberName : model.identity;

    var documentIdentifier = plural ? pluralize( emberName ) : emberName;

and then that specific model has emberName: "modelName",

Look into fig issues

docker/compose#328
docker/compose#118
docker/compose#637

Cannot start container 58c36325805586d122dbda8fa7c66e3aa5b979749695ada0fd8cfc2e0fdc2826: Cannot link to a non running container: /myprojectnew_db_1 AS /myprojectnew_server_1/myprojectnew_db_1

turns into

server_1 | error: A hook (`orm`) failed to load!
server_1 | error: Error: failed to connect to [db:27017]

new projet impossible with debian

Hi,

When I try to create a new project :
sane new testProject --docker --verbose

it tells me :
sane requires the latest docker/boot2docker/fig to be installed. Check https://github.com/artificialio/sane/blob/master/README.md for more details.
Exitting now.

I have fig 1.01, Docker version 1.4.1, build 5bc2ff8, node v0.10.35, on Debian 7.1

It seems I fix this error in the file lib/tasks/checkEnvironment.js line 19 by replacing

if (self.boot2dockerExists() &&
  ['win32', 'darwin'].indexOf(process.platform) > -1) {
    return true;
} else {
  return false;
}

with

if (['win32', 'darwin'].indexOf(process.platform) > -1) {
  if(self.boot2dockerExists()) {
    return true;
  } else {
    return false;
  }
}

Thanks

Todo

These are the immediate things on the todo list, roughly in order of priority:

Immediate

  • Add a --containerless or --docker flag, to have a quick&simple dev setup without docker
  • Implement sane up/serve command to start up both servers and have a unified log
  • See if you can improve stability and first time user experience (related to Docker IP story)
  • Improve the Docker IP story. Either automatically open the server in the browser, or print the IP, or automatically map to localhost. Might also be worth getting the Docker IP dynamically to prevent any possible conflicts.
  • Switch all the async stuff with ES6/ES7 syntax via esnext
  • To save time with setting up sails dependencies think about symlinking that, similar to how sails does it on sails new command

Next

  • Sort out deployment with docker-gen using a nginx container
  • Redis support (probably with the ability to choose it in addition to another db)
  • Look into creating a generator for shared code, models to start with via sane g resource <name>
  • Remove automatically initialized git by ember-cli. Think about initializing on sane level.
  • Look how to improve async exec calls, so pleasent-progress can be used without having to mess around with tons of callbacks. https://github.com/tj/co might be one solution.
  • Think about adding an optional --cors flag or just add the necessary settings commented out (removes the need of the --proxy flag and especially useful if you are going to develop a cross-platform app)
  • Add a --verbose flag to show the original output
  • Add a --force flag to carry on running a command even when there is an error
  • Look at https://github.com/feross/hostile to make your docker server available via localhost. (done via https://github.com/boot2docker/boot2docker/blob/master/doc/WORKAROUNDS.md#port-forwarding)
  • Add note on how to be able to develop on this project
  • Add more info and possible fixes for fig/docker to readme.
  • Find a better way to define project root and sane root. Look more into __dirname as well as process.cwd()
  • Check https://github.com/stefanpenner/ember-cli/blob/7868f9e26783932e28845a8e320b9197d7af5b5f/lib/utilities/ember-cli-version.js for version number stuff

Nice to haves:

  • Add some tests

Done:

  • Test all the different db connections
  • Test that ember server --proxy works
  • Investigate how to improve the output when ember-cli creates the project (i.e. not have all these bower and npm install messages show up)
  • Restructure the whole code to make it more readable and more easy to extend

Notes:
Once the first two todos are sorted out and tested, I might start pushing it as an official npm package.

sane g resource <name> what should it be a proxy call for?
There is sails generate api <name>, which doesn't allow attributes to be defined, so we could just call sails generate model followed by controller to add support for that. ember g resource allows attributes to be defined, so no problem there.
It would probably make sense to have some kind of sane sync that checks the models and makes sure they are matching each other.

Proper commands need to be spec'd out.

Get docker IP on Mac: boot2docker ip
To edit the host file (map Docker IP to localhost): https://github.com/feross/hostile

If anyone wants to contribute, just let me know.

JS and CSS assets not found after deployment to heroku (production)

In a plain Vanilla SANE stack I tried the deployment to heroku. While working locally without a problem, the JS and CSS asset lead to 404 on heroku. The backend API is working, though.

Examples:

>> 404 >> 404

I did try heroku buildpacks (ember and node.js), but I do not have enough experience.

How can this be fixed?
Thank you.

guessView fallback not working

Hi, I've tried out today sane without docker (just `sane new testProjectSane)

and running sane generate new resource user name:string age:number generated the resource, but trying to view it as raw by visiting localhost:1337/api/v1/users crashes the server

$ testProjectSane/server/api/responses/ok.js:44
else return res.guessView({ data: data }, function couldNotGuessView () {
                        ^
TypeError: undefined is not a function

Docker shared volume causes Grunt to consume increasing CPU over time

I left the sane up fig/docker config running over night, and the fan was at maximum RPMs. After investigating, it seems that Grunt's watch on the shared volume in boot2docker was causing increased CPU usage over time. I found some ancient unresolved bug reports, like gruntjs/grunt-contrib-watch#35 that indicate some issues with Grunt and CPU usage, they recommend setting the polling interval to a higher value.

Opinion: I think Grunt in sails for the SANE architecture isn't necessary, since Ember-CLI is providing the asset compilation.

`ember serve` failing after a bare install

After a bare install I'm having a failure running ember serve:

$ git clone https://github.com/artificialio/sane.git
$ cd sane
$ npm install
...
$ bower install
...
$ ember serve
version: 0.0.44
Livereload server on port 35729
Serving on http://0.0.0.0:4200
.../sane/client/bower_components/foundation/scss/foundation/functions:13: error: error reading values after )
 [string exception]
Error: .../sane/client/bower_components/foundation/scss/foundation/functions:13: error: error reading values after )
 [string exception]
    at .../sane/client/node_modules/ember-cli/node_modules/broccoli/lib/builder.js:34:15
    at $$$internal$$tryCatch (.../sane/client/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:470:16)
    at $$$internal$$invokeCallback (.../sane/client/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:482:17)
    at $$$internal$$publish (.../sane/client/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:453:11)
    at $$$internal$$publishRejection (.../sane/client/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:395:7)
    at $$rsvp$asap$$flush (.../sane/client/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:1531:9)
    at process._tickCallback (node.js:419:13)

I first tried to do the same but instead of npm install && bower install I've ran ember init and choose no to all xxx exists, replace? and I was having another issue and that is why I tried a bare install without changing anything and following the README. The error I was getting at that point was (but I didn't change the app/app.js):

$ ember server
version: 0.0.44
Livereload server on port 35729
Serving on http://0.0.0.0:4200
ENOENT, no such file or directory '.../client/tmp/tree_merger-tmp_dest_dir-irUhw3wT.tmp/client/app.js'
Error: ENOENT, no such file or directory '.../client/tmp/tree_merger-tmp_dest_dir-irUhw3wT.tmp/client/app.js'
  at Object.fs.statSync (fs.js:695:18)
  at addModule (.../client/node_modules/ember-cli/node_modules/broccoli-es6-concatenator/index.js:83:46)
  at addModule (.../client/node_modules/ember-cli/node_modules/broccoli-es6-concatenator/index.js:126:9)
  at .../client/node_modules/ember-cli/node_modules/broccoli-es6-concatenator/index.js:59:7
  at $$$internal$$tryCatch (.../client/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:470:16)
  at $$$internal$$invokeCallback (.../client/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:482:17)
  at $$$internal$$publish (.../client/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:453:11)
  at $$rsvp$asap$$flush (.../client/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:1531:9)
  at process._tickCallback (node.js:419:13)

Is anyone having such issues?

Allow multiple client and server folders

There is the need to allow for multiple backends, as well as multiple frontends, e.g. a ios client, android client, etc.
And api-v1, api-v2, etc.

This will probably be defined within the .sane-cli.

Improve docs and error messages for sane generate

See #53 .

  • Add note to documentation that you have to run sane generate in your project root folder (or make it possible you can also run it in sub-directories)
    • Improve error message when you run sane generate in the wrong directory.

Yo generator ;)

I wrapped the project seed generation in a Yo generator instead, using the tips from your vimeo presentation: https://vimeo.com/103711300

A generator provides way more flexibility than these seed projects... and allows using the latest Sails and Ember-cli app generators "out of the box". Dynamic, not static.

https://github.com/kristianmandrup/ember-config/tree/master/generators

Very similar approach to: https://chiefy.github.io/2014/09/03/sails-generate-ember.html

Perhaps we could collaborate somehow? Or for anyone else interested...

On sane new: EACCES, permission denied 'server/.sailsrc'

I'm new to sane, so maybe I'm doing something wrong, but when I try to run sane new project --docker I receive the following:

  create tests/.jshintrc
  create tests/helpers/resolver.js
  create tests/helpers/start-app.js
  create tests/index.html
  create tests/test-helper.js
  create tests/unit/.gitkeep
  create vendor/.gitkeep
Installed packages for tooling via npm.
Installed browser packages via Bower.
Running tooling scrips for Sane....EACCES, permission denied 'server/.sailsrc'
Running tooling scrips for Sane...

and the foldersize sits at 190M, so I'm guessing it's hung up. The entire server/ folder is owned by root, whereas it is owned by my user when I sane new project without docker.

I am using:

sane: 0.0.23
fig: 1.0.1
docker: 1.5.0, build a8a31ef

and I have DOCKER_HOST set as suggested in https://gist.github.com/RuslanHamidullin/94d95328a7360d843e52

Can't create a new project with --docker and -d mysql or -d postgres

While sane new project --docker -d mongo works both mysql and postgres hang at the step Installing Sails packages for tooling via npm... There's no error but it also never finishes.

sane new newproject --docker -d mysql
Sane version: 0.0.13

Setting up Sails project and downloading latest Docker Containers.
sails version: 0.10.5
Starting newproject_db_1...
info: Created a new Sails app `server`!
Installing Sails packages for tooling via npm..

Fig requires root or "docker" group

I'm just beginning to use both docker, fig, and sane. After installing all three (Linux Mint 17.1 / Ubuntu 14.04.1) and attempting to sane new project --docker I received the error:

Couldn't connect to Docker daemon at http+unix://var/run/docker.sock - is it running?
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.

From research, it seems that fig is expected to run as root (for security). The solution I used was to add myself to the "docker" group, as explained in https://docs.docker.com/installation/ubuntulinux/#giving-non-root-access

Another option is to follow advice at: https://gist.github.com/RuslanHamidullin/94d95328a7360d843e52 to bind docker to a tcp port. But, according to the Docker docs (http://docs.docker.com/articles/basics/) this is not recommended.

Maybe a better (more secure) way is to prompt for sudo password?

Wrong dependency message points to ember-cli

running sane new testProject -d disk

results into:

sane requires the latest sails to be installed. Run npm install -g ember-cli.
Exitting now.
$ sane -V
0.0.23

and

ember --version
version: 0.1.15
node: 0.11.14
npm: 2.1.8

Missing Comma

You need a comma right here :)
https://github.com/artificialio/sane/blob/master/server/api/controllers/AppController.js#L29

Throws the following error on sails lift:

..server/api/controllers/AppController.js:36
  serveView: function(req, res) {
  ^^^^^^^^^
SyntaxError: Unexpected identifier
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.M`odule._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at ../server/node_modules/include-all/index.js:129:29
    at Array.forEach (native)
    at requireAll (../server/node_modules/include-all/index.js:44:9)
    at buildDictionary (../server/node_modules/sails/node_modules/sails-build-dictionary/index.js:68:14)

sails-generate-auth

Hi

Is this supported? I couldn't run the sails generate auth command inside /api so had to run it at the level above but that doesn't look right? Are there any examples using this?

Add all the tests

Add tests for:

  • .sane-cli created and parsed properly
  • unit and/or acceptance tests for lib/commands/up.js/sane up that it can start both processes without exiting/errors and is showing some output from client and server.
  • Added a test for the --pod flag

Lean up Sails

The ember app takes kare of all the asset-pipeline etc and is either serverd through CDN or through the assets folder in sails. So remove everything frontend related completely.

  • add views: false hook to .sailsrc (see below)
  • remove views folder
  • remove tasks folder
  • remove Gruntfile.js
  • npm rm grunt ejs grunt-contrib-clean grunt-contrib-concat grunt-contrib-copy grunt-contrib-cssmin grunt-contrib-jst grunt-contrib-less grunt-contrib-uglify grunt-contrib-watch grunt-sails-linker grunt-sync --save

This is what needs to be added to the .sailsrc:

{
  "hooks": {
    "views": false
  }
}

Error trying to install node dependencies in vagrant ssh

npm WARN deprecated [email protected]: DEPRECATED. See readme: https://github.com/gruntjs/grunt-lib-contrib
npm ERR! Linux 3.13.0-24-generic
npm ERR! argv "node" "/usr/bin/npm" "install"
npm ERR! node v0.10.32
npm ERR! npm  v2.0.0
npm ERR! code ETARGET

npm ERR! notarget No compatible version found: waterline-errors@'>=0.10.0 <0.11.0'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["0.9.0","0.9.1","0.10.0-rc1"]
npm ERR! notarget 
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

So I tried running it again and got this the next time

npm ERR! Linux 3.13.0-24-generic
npm ERR! argv "node" "/usr/bin/npm" "install"
npm ERR! node v0.10.32
npm ERR! npm  v2.0.0
npm ERR! code ETARGET

npm ERR! notarget No compatible version found: anchor@'>=0.10.0 <0.11.0'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["0.0.0","0.1.0","0.1.0-1","0.1.2-0","0.2.0","0.2.1","0.3.0","0.4.0","0.4.1","0.9.0","0.9.1","0.9.2","0.9.3","0.9.4","0.9.5","0.9.6","0.9.7","0.9.8","0.9.9","0.9.10","0.9.11","0.9.12","0.10.0-rc1","0.10.0-rc2","0.9.13"]
npm ERR! notarget 
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

Not sure if I should just keep running it to see if it makes it through eventually or if this is a breaking issue.

CoffeeScript support

Ember CLI has a decent support for CoffeeScript. You just install an addon, and all ember g geneartors start producing .coffee files instead of .js.

I wish SANE had the same support for its generators.

Don't hesitate to +1 until further notice. @Globegitter promised to consider this feature once there is enough demand.

Disable analytics for tests

Right now analytics are being tracked for the testsuite as for every normal command. Disable analytics for that, either via a new flag on sane new, e.g. --disableAnalytics or somehow set it via a .sane-cli. Or possibly there is another way to disable that programatically.

Is it normal to have to sudo every command for sane to work?

I have to run everything with sudo, is this normal or is there a way to get around it, I installed rbenv because I thought that would get around it. I'm still a little unfamiliar with this kind of thing but I feel like I've used sane in the past without having to do all that.

Authenticating users

Am I assuming correctly that authenticating a user should happen in the ember app side? Or should that be done on the sails side of this stack? Sorry I'm just really new to how this kind of setup works.

Having issues reaching the end point

I've created a Projects model in the server models folder and when I try to post anything to it from the ember app it says the endpoint doesn't exist.

I also can't go to localhost:1337, it says no data was received. In fact if I type anything after that url nothing happens, it doesn't forward to the ember app or anything. Am I missing some integration?

npm install on Windows shared folder

I try to use sane on a Windows shared folder (mounted with cifs), but I need to npm install --no-bin-links for a working install.

Do you have any idea for doing that ?

Thanks in advance

error when installing with npm install -g sane-cli ember-cli sails

Hi,

I have been using sane in projects, today trying creating a new project, i stumbled with this error:
Cannot find module '/home/alexandre/.npm-packages/lib/node_modules/sane-cli/node_modules/ember-cli/package.json'

The issue seems to be, if packages installed through npm install -g sane-cli ember-cli sails ,that problem happens.
If i then, in the folder i would create the new project, do a npm install sane-cli, it works afterwards.

Is this an issue or normal ?
Thanks!

Error on resource generation

Then is try to generate a model like this in a new project:

sane generate resource user firstname:string lastname:string phone:string handy:string mail:string 

I get the following error.

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn ENOENT
    at errnoException (child_process.js:1011:11)
    at Process.ChildProcess._handle.onexit (child_process.js:802:34)

[email protected]
[email protected]
[email protected]
[email protected]

MacOSX 10.10

Npm and node installed via homebrew.

Any idea? Perhaps any idea how i can get more infos about what happens there?

Sails dependency warning

server_1 | info: Starting app...
server_1 |
server_1 | warn: The package.json in the current directory does not list Sails as a dependency...
server_1 | warn: Are you sure `/server` is a Sails app?

Doesn't seem to break anything though.

Adding the dependency doesn't seem to get rid of the warning.

Getting an NFS error when trying to run vagrant up

Exporting NFS shared folders...
NFS is reporting that your exports file is invalid. Vagrant does
this check before making any changes to the file. Please correct
the issues below and execute "vagrant reload":

exports:2: path contains non-directory or non-existent components: /Users/jordanriser/workspace/sails-ember/server
exports:2: no usable directories in export entry
exports:2: using fallback (marked offline): /

But that directory is not where I have downloaded the current zip, I found this repo once before and try running it, and then I deleted it because I wanted to start over so I downloaded the zip into a new directory and when trying to go through the setup process it's giving me this issue.

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.