daftmonk / fullstack-demo Goto Github PK
View Code? Open in Web Editor NEWAn example of what the angular-fullstack generator can scaffold.
Home Page: http://fullstack-demo.herokuapp.com/.
An example of what the angular-fullstack generator can scaffold.
Home Page: http://fullstack-demo.herokuapp.com/.
I don't see anywhere where you configure socket.io to use jwt like the example shown here
That mean the websocket is open to any connection?
Steps taken:
app is created on heroku but doesn't work and receive the followeing error:
[firexion@firexion-mobile test]$ yo angular-fullstack:heroku
[?] Name to deploy as (Leave blank for a random name): firexion-mean
Initializing deployment repo
Initialized empty Git repository in /home/firexion/Projects/test/dist/.git/
Creating heroku app and setting node environment
Creating firexion-mean... done, stack is cedar
http://firexion-mean.herokuapp.com/ | [email protected]:firexion-mean.git
Git remote heroku added
Setting config vars and restarting firexion-mean...
done, v3
NODE_ENV: production
events.js:72
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at errnoException (net.js:904:11)
at Pipe.onread (net.js:558:19)
When I build my project, inside dist/server/app.js I can see the following line:
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
What should I do to start my server in production environment when I try running from this directory? Also, I want my project to listen on both ports 3000 and 8443, if request comes on 3000 I redirect it to 8443.
Please help with this.
I encounter such errors when request resources from other site.
XMLHttpRequest cannot load http://hp8:8080/rest/test. Request header field Authorization is not allowed by Access-Control-Allow-Headers.
Does it need any settings in express server?
Thanks,
James.
I'm getting this error when I start the server: 'grunt serve'
Seems to be related to this SO thread:
http://stackoverflow.com/questions/22698661/mongodb-error-setting-ttl-index-on-collection-sessions
Loading "Gruntfile.js" tasks...ERROR
Error: Cannot find module './server/config/local.env'
I can't find the this file. Any help?
app.route('/:url(api|auth|components|app|bower_components|assets)/*')
.get(errors[404]);
...looking for a quick explanation. I understand it is meant to redirect to 404 if the url doesn't match some specific paths, but the syntax is confusing.
Particularly '/:url( ... )/*
-- what is :url( )
? It does not seem to be part of express, nor any standard regex syntax. I get that in the parens it is using the logical or |
, but I still don't get :url
, is that actually embedded in the path?
Application error when launching the demo app from Readme.md
Hi,
With my understanding from documentation i execute only grunt serve , but i am getting error 401 while i select google authentication or any others.
That’s an error.
Error: invalid_client
The OAuth client was not found.
I am not sure if i need to execute somethings inside server such as node app.js or not? it is not written in documentation anythings about server side. How i can solve problem of authentication?
or following error from twitter:
Error: Could not authenticate you. at Strategy.parseErrorResponse (C:\Users\pasma08\WebstormProjects\CspMetadata\node_modules\passport-twitter\lib\strategy.js:182:10) at Strategy.OAuthStrategy._createOAuthError (C:\Users\pasma08\WebstormProjects\CspMetadata\node_modules\passport-twitter\node_modules\passport-oauth1\lib\strategy.js:349:16) at C:\Users\pasma08\WebstormProjects\CspMetadata\node_modules\passport-twitter\node_modules\passport-oauth1\lib\strategy.js:218:41 at C:\Users\pasma08\WebstormProjects\CspMetadata\node_modules\passport-twitter\node_modules\passport-oauth1\node_modules\oauth\lib\oauth.js:543:17 at passBackControl (C:\Users\pasma08\WebstormProjects\CspMetadata\node_modules\passport-twitter\node_modules\passport-oauth1\node_modules\oauth\lib\oauth.js:397:13) at IncomingMessage. (C:\Users\pasma08\WebstormProjects\CspMetadata\node_modules\passport-twitter\node_modules\passport-oauth1\node_modules\oauth\lib\oauth.js:409:9) at IncomingMessage.emit (events.js:129:20) at _stream_readable.js:908:16 at process._tickCallback (node.js:355:11)
However i don't get this error through demo at all. I am getting error while using http://localhost:9000
Moreover in part of app.js inside server folder i am getting error from line exports = module.exports = app; after removing first exports, error disappear. Is that fine to remove first exports?
I'm trying to add normalize.css which must go first before any other CSS in the app (and I dont just want to paste it right into app.scss
because it's huge and messy).
According to the demo file: https://github.com/DaftMonk/fullstack-demo/blob/master/client/app/app.scss
I can see other files are going before main/main.scss
. When I try to do this, the moment I refresh the page it's instantly re-ordered so main is first.
If I try putting @import
outside of the injector comment, as in the demo, it immediately moves it back into the injector and makes a duplicate.
Thanks
Hi! Just wanted to say that so far I am blown away with your generator. I've played around with mean.js and mean.io before but this project structure is really well set up and I will most likely be using it for several projects I'm working on.
I'm attemping to add some new routes to the angular app that require admin rights in order to view. I'm confused as to how the Auth service works in terms of determining which routes require admin. Is it something to do with nested states in $stateProvider? In my app I have multiple pages located at admin/{something} which should all require proper authentication. Where is this applied?
Thanks again!
Jesse
When we change the password, it generates the new hash and salt. But when I enter the new password, it says password is incorrect.
Can you figure out why does this happen? Is hashing algorithm working fine?
I need an extra angular dependency, but I only have the source js file. I can't see where to put it so that it gets wound into the project
Observed using standard settings (with and without babel ES6 preprocessing option) on
Debian Jessie
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v5.0.0
npm ERR! npm v3.4.0
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the v8-debug package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR! npm owner ls v8-debug
After I install everything (all works fine as far as I can tell), when I un grunt server
I get the following error:
Running "concurrent:server" (concurrent) task
Warning:
D:\Dropbox\Uncontrolled_Projects\angular-with-compass\node_modules\grunt-con
trib-compass\node_modules\tmp\lib\tmp.js:261
throw err;
^
TypeError: Cannot read property 'stdout' of undefined
at compile (D:\Dropbox\Uncontrolled_Projects\angular-with-compass\node_m
odules\grunt-contrib-compass\tasks\compass.js:37:10)
at D:\Dropbox\Uncontrolled_Projects\angular-with-compass\node_modules\gr
unt-contrib-compass\tasks\compass.js:68:7
at D:\Dropbox\Uncontrolled_Projects\angular-with-compass\node_modules\gr
unt-contrib-compass\tasks\lib\compass.js:121:11
at _fileCreated (D:\Dropbox\Uncontrolled_Projects\angular-with-compass\n
ode_modules\grunt-contrib-compass\node_modules\tmp\lib\tmp.js:172:7)
at D:\Dropbox\Uncontrolled_Projects\angular-with-compass\node_modules\gr
unt-google-cdn\node_modules\bower\node_modules\rimraf\node_modules\graceful-fs\g
raceful-fs.js:53:5
at D:\Dropbox\Uncontrolled_Projects\angular-with-compass\node_modules\gr
unt-google-cdn\node_modules\bower\node_modules\rimraf\node_modules\graceful-fs\g
raceful-fs.js:62:5
at Object.oncomplete (fs.js:107:15) Use --force to continue.
Aborted due to warnings.
Any idea why compass would be causing an issue? When I install without Compass, it all works fine, including the build.
Any plans to add in this functionality? Is this repo being actively maintained?
Thanks.
Hi,
Routes of my program calls the auth.isAuthenticated () function , this route is the type get:
This route shows me cars
router.get ( '/', auth.isAuthenticated () , controller.index ) ;
For some reason when I try to enter the path to the backend , ie api / car tells me :
GET / api / cars
404 9ms
UnauthorizedError : No Authorization header was found.
Please help .
Hi I created an app and it loads but the routing wasn't set up properly for login etc so only get the home page along with this error in the console...
Error: [$injector:unpr] Unknown provider: $resourceProvider <- $resource <- Session <- Auth
Now when I try and create a new project or route using yo i get this error
Error: Cannot find module 'map-key'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/usr/local/lib/node_modules/generator-angular-fullstack/node_modules/yeoman-generator/node_modules/download/node_modules/decompress/index.js:4:11)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
I tried to deploy this app after a fresh clone, but received several errors.
At first it was Error: Cannot find module 'connect-livereload'
Afterwards I ran heroku config:set NODE_ENV=staging and got: Error: Cannot find module './staging.js'
Finally, I changed NODE_ENV=production and saw: Error: ENOENT, no such file or directory '/app/public/favicon.ico'
I noticed on your .gitignore file you are excluding public. Do I need to re-run Grunt before I can deploy to heroku?
Sorry for ignorance. I'm sure a basic guide would be greatly appreciated!
Thanks
HI,
How can I include a jade mixin ? I seems that's nor working.
I got this error
Running "jade:compile" (jade) task
File .tmp/app/account/login/login.html created.
File .tmp/app/account/settings/settings.html created.
File .tmp/app/account/signup/signup.html created.
File .tmp/app/admin/admin.html created.
File .tmp/app/main/main.html created.
>> Jade failed to compile "client/app/requests/jade/mixin/requestsTab.jade".
>> TypeError: client/app/requests/jade/mixin/requestsTab.jade:1
>> > 1| mixin requestsTab(tabLabel, filter)
>> 2| md-tab(label=tabLabel)
>> 3| md-item(ng-repeat="request in requests | filter:{status: filter}")
>> 4| div(flex)
>>
>> Object # has no method 'requestsTab'
>> Destination not written because compiled files were empty.
>> Jade failed to compile "client/app/requests/requests.jade".
>> TypeError: client/app/requests/jade/mixin/requestsTab.jade:1
>> > 1| mixin requestsTab(tabLabel, filter)
>> 2| md-tab(label=tabLabel)
>> 3| md-item(ng-repeat="request in requests | filter:{status: filter}")
>> 4| div(flex)
>>
>> Object # has no method 'requestsTab'
>> Destination not written because compiled files were empty.
File .tmp/components/jade/mixin/requestsTab.html created.
File .tmp/components/modal/modal.html created.
File .tmp/components/navbar/navbar.html created.
This demo url is not working. It throws application error.
The error message as follows.
An error occurred in the application and your page could not be served. Please try again in a few moments. If you are the application owner, check your logs for details.
I'm not getting the same structure as this demo:
npm install generator-angular-fullstack
yo angular-fullstack
Versions:
[email protected]
└── [email protected] extraneous
[email protected]
[email protected]
[email protected]
After accepting all defaults, I get:
Gruntfile.js
app/
└ bower_components/
└ favicon.ico
└ images/
└ robots.txt
└ scripts/
└ styles/
└ views/
bower.json
karma-e2e.conf.js
karma.conf.js
lib/
└ config/
└ controllers/
└ routes.js
node_modules/
package.json
server.js
test/
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.