mgenev / how-to-sane Goto Github PK
View Code? Open in Web Editor NEWA demonstration of how to use the SANE stack
Home Page: http://howtosane.ninja
License: MIT License
A demonstration of how to use the SANE stack
Home Page: http://howtosane.ninja
License: MIT License
When uploading a photo, the system is unable to find some images.
/img/loading.gif
img/loading-sm.gif
There may be more. I believe this is in \how-to-sane\client\vendor\bootstrap-fileinput\fileinput.js:234
Looks like bootstrap can't find the necessary files.
I don't seem to be able to get the how-to-sane app to run - after running npm install in both client and server I get
Cannot find module '/home/vagrant/how-to-sane/client/bower_components/ember/bower.json'
client | Error: Cannot find module '/home/vagrant/how-to-sane/client/bower_components/ember/bower.json'
client | at Function.Module._resolveFilename (module.js:338:15)
client | at Function.Module._load (module.js:280:25)
client | at Module.require (module.js:364:17)
client | at require (module.js:380:17)
client | at Class.module.exports.htmlbarsOptions (/home/vagrant/how-to-sane/client/node_modules/ember-cli-htmlbars/ember-addon-main.js:28:24)
client | at Object.app.registry.add.toTree (/home/vagrant/how-to-sane/client/node_modules/ember-cli-htmlbars/ember-addon-main.js:22:62)
client | at /home/vagrant/how-to-sane/client/node_modules/ember-cli/lib/preprocessors.js:104:26
client | at Array.forEach (native)
client | at processPlugins (/home/vagrant/how-to-sane/client/node_modules/ember-cli/lib/preprocessors.js:103:11)
client | at module.exports.preprocessTemplates (/home/vagrant/how-to-sane/client/node_modules/ember-cli/lib/preprocessors.js:86:10)
I have ran npm install --save bower in /client but it doesn't seem to fix it...
make or find a reusable lazy loading solution for any situation
i pulled the latest commit c1fd0e1, then npm install, bower install,
then find that sane up
failed.
22:11 $ sane up
module.js:338
throw err;
^
Error: Cannot find module 'which'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/home/ming/work/sane/lib/tasks/checkEnvironment.js:3:13)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (/home/ming/work/sane/node_modules/traceur/src/node/require.js:65:21)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
after sudo npm install -g which
it is resolved.
write here so anyone who met same problem may get help and we may need an solution or document.
frontend testing is a headache for me but test is really important for a successful project.
hope we can fix the failed tests at client side. http://localhost:4200/tests?nojshint
archive chats in an inbox view like facebook using the admin lte gui
all past features need to be tested before 1.0
use async buttons everywhere which are aware of the promise state and prevent user from duplicating actions, use async button addon
https://www.almsaeedstudio.com/
Use pieces which are suitable
write others like them to keep things consistent
currently our api security is very rudimentary and nothing stops a user from messing with another one's resource. For this we need a full blown authorization (permissions) solution which allows us a user to have a role - owner, friend, nobody or admin
a solution for sails exists called sails-permissions and ember has similar ones as well. We can fuse the best solution we come up with which can later be spun off as a sane addon
make search view for vendors with keywords, tags, geo, look at notebook wireframes
According to the sanestack docs a deploy should be posbile by running the following:
From the /client folder:
ember build --environment=production --output-path=../server/assets/
And then from the /server folder
node app.js
The issue is that the index.html file does not get served, you just get the unauthorised error message from the API.
With your example, should the client and the server be deployed decoupled?
the server upload/photo endpoint must not rely on the indexes so much
this happens because it actually leaves the route. Make an implementation similar to the one at classmates where the modal is just a template loaded by an action with no route change.
better modals:
figure out route in modal issue - if you open it from action, it doesn’t register as route, if you open it with link-to right away it doesn’t go through outlet
how to render a component into an outlet?
needs to be placed in a better place in the hierarchy
many problems with current maps, think of solution. leaflet replacement is an option
start looking at optimizing performance through only requesting the needed fields for each scenario
mphasize/sails-generate-ember-blueprints#20
Just like in EmberCLI or Grails the idea is that sails generate new api user
also produces /tests/controllers/user
and /tests/models/user
.
I think it's also most logical that sails new app
also sets up the /tests folder and the runner
I looked a bit and the sails binary delegates the generate command to this module, which in turn requires the submodules for what you're actually generating:
https://github.com/balderdashy/sails-generate/blob/master/package.json
We'd need to add a new sub module for generate test
and then invoke it in the end of the generate api
command.
Additionally, it would be good if we can crawl existing models/controllers reotroactively and generate test shells for them too.
Let me know if this all sounds reasonable and what futher thoughts are.
Note: When I say the set up from this repo, I really mean without chai and sinon. Just plain mocha.
expand like mapped in notebook - geo, photo etc.
ln 46 is hacked in, it shouldn't look for the exact property, it was a quick fix for having no time to properly pass the promise through the functions
overall since moving away from the 3rd party module which wasn't very good, the geocoding is broken because of that and was never successfully tested in the new implementation which is why in the geotest I did before the meetup demo, I simply output the coordinates instead of getting the real address.
Rolling back some commits actually has some valuable code for this, but I haven't had time to revisit and repair it.
make a site tour which shows all the features and explains what they demo and link to docs or blogs
user and profile, user should carry the id and few more things like role while profile carries the bulk of data
well, sane up
seems failed to boot ember, the error message is below:
client | Error: Cannot find module 'mkdirp'
client | at Function.Module._resolveFilename (module.js:336:15)
client | at Function.Module._load (module.js:278:25)
client | at Module.require (module.js:365:17)
client | at require (module.js:384:17)
client | at Object.<anonymous> (/home/ming/work/xrp/client/node_modules/ember-cli-less/node_modules/broccoli-less-single/index.js:3:14)
client | at Module._compile (module.js:460:26)
client | at Object.Module._extensions..js (module.js:478:10)
client | at Module.load (module.js:355:32)
client | at Function.Module._load (module.js:310:12)
client | at Module.require (module.js:365:17)
client | at require (module.js:384:17)
i'm not sure if it is same problem like #19 ?
The vision has been this - to boil down the common denominator of features between most apps.
To me the obvious ones are:
all these and any others, in my opinion should be as generic as possible, staying generic serves 2 purposes:
We do them as a learning project which matures, once it matures we turn it into an app making platform
akin to what wordpress is for CMS, but modern using Sane and Sane addons
I've been thinking of using this as a UI library for the how-to-sane demo, because it's free and generic and already has a lot of the features, but for every spin off app it can be replaced with the desired branding:
https://www.almsaeedstudio.com/preview
My idea has been to at some point fork how-to-sane into sane-startup
I understand this is a lot of work, but enough people can get it done and my idea is that the book and the app, just keep growing anyway, not the typical book that gets written and dated in a year, if we do all this, we'll be looking at some of the most useful open source software out there and among the best
way to learn how to make apps.
in a world where tech reigns supreme, this would be a very high standing :)
Use the socket from sails and one of the socket modules from ember which were discussed here:
mphasize/sails-generate-ember-blueprints#13 (comment)
use the chat from here for UI:
http://www.almsaeedstudio.com/preview
find a good addon, tie to events
It was written for the old one, and needs to be completely rewritten which is why it was unhooked for now
following up the chat story we easily gain the ability to do push notifications by using the socket down towards the client
we need to create a notification model, which then gets created by other actions like commenting, liking a photo or receiving a chat message and eventually friend request
there are much jshint problems of current code base, does anyone working on fix this?
if not i'd like to do it tomorrow.
server | 65:10 error Expected { after 'if' condition curly
server | 84:8 error Expected { after 'if' condition curly
server | 104:33 error 'sails' is not defined no-undef
server | 133:6 error Expected { after 'else' curly
server | 159:28 error 'sails' is not defined no-undef
server | 172:11 error Closing curly brace does not appear on the same line as the subsequent block brace-st
...
I have a history manager and back button coded somewhere else, port it and then add a global back arrow top left where the app logo is meant to go
hi @mgenev, i followed the steps, very thing is fine but sane up
failed and the error message is too simple for me to resolve, below is the error message.
✔ ~/work/how-to-sane [master|✔]
22:59 $ sane up
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)
the other steps is quite simple so should be fine, what is below step means?
Install imagemagic and graphicmagic like shown: https://github.com/aheckmann/gm
i'm using ubuntu, i installed both:
sudo apt-get install imagemagick graphicsmagick
then sudo npm install -g gm
could you help? thank you.
allow users to be friends with each other
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.