neroniaky / angular2-token-example Goto Github PK
View Code? Open in Web Editor NEW:key: Example for Angular2-Token (a token based authentication) with Devise Token Auth and Rails 5.0 API.
License: MIT License
:key: Example for Angular2-Token (a token based authentication) with Devise Token Auth and Rails 5.0 API.
License: MIT License
This GitHub repository is connected to Heroku
and gets deployed automatically. In order for this to work files in angular2-client
need to compiled locally and pushed to the repository.
A solution that runs npm run build
before deploying to Heroku would be preferable.
Rendering rails parts are needed for devise_auth_token OAuth flow to work. It boils down to figuring out which middlewares are needed to be added here.
hi! i started to use angular2-token but i can found a example for how make a post with a file. someone can help me pls ?
I learned a lot from this example app, thank you for making it!
I have an issue however, related to app file size. It doesn't seem like a good idea to load the entire Angular app on the root "/" of my domain. If users just want to see some info and read the FAQ page, they shouldn't have to download 3MB of JS. So I was wondering about having the homepage, sign-in and sign-up pages not be part of the Angular app. Is this even possible? Can I use regular devise gem views for this? Or will the user only be logged in Rails, and then when Angular loads, the user isn't logged in.
Thanks for your time!
Hi,
Is it possible to have access to the access_token sent by the provider to then use it to call it's api.
For example, I can log-in with my Instagram. However, if I want to call the Instagram API, I need the access_token sent back by Instagram.
Is this achievable?
I'm very sorry as I should be able to figure this out, but I am getting the error below when trying to run the postinstall...
webpack --inline --colors --progress --display-error-details --display-cached
90% optimize assetsError: Debug Failure. False expression: File has unknown extension.
at Object.assert (/Users/john/pda/pda-vnext/angular2-client/node_modules/typescript/lib/typescript.js:3177:23)
at Object.fail (/Users/john/pda/pda-vnext/angular2-client/node_modules/typescript/lib/typescript.js:3182:19)
at Object.extensionFromPath (/Users/john/pda/pda-vnext/angular2-client/node_modules/typescript/lib/typescript.js:3324:15)
at /Users/john/pda/pda-vnext/angular2-client/node_modules/typescript/lib/typescript.js:62182:46
at Array.map (native)
at resolveModuleNamesWorker (/Users/john/pda/pda-vnext/angular2-client/node_modules/typescript/lib/typescript.js:62176:141)
at resolveModuleNamesReusingOldState (/Users/john/pda/pda-vnext/angular2-client/node_modules/typescript/lib/typescript.js:62300:24)
at processImportedModules (/Users/john/pda/pda-vnext/angular2-client/node_modules/typescript/lib/typescript.js:63152:35)
at findSourceFile (/Users/john/pda/pda-vnext/angular2-client/node_modules/typescript/lib/typescript.js:63062:17)
at processSourceFile (/Users/john/pda/pda-vnext/angular2-client/node_modules/typescript/lib/typescript.js:62965:27)
at processRootFile (/Users/john/pda/pda-vnext/angular2-client/node_modules/typescript/lib/typescript.js:62852:13)
at /Users/john/pda/pda-vnext/angular2-client/node_modules/typescript/lib/typescript.js:62203:60
at Object.forEach (/Users/john/pda/pda-vnext/angular2-client/node_modules/typescript/lib/typescript.js:1294:30)
at Object.createProgram (/Users/john/pda/pda-vnext/angular2-client/node_modules/typescript/lib/typescript.js:62203:16)
at synchronizeHostData (/Users/john/pda/pda-vnext/angular2-client/node_modules/typescript/lib/typescript.js:78867:33)
at Object.getProgram (/Users/john/pda/pda-vnext/angular2-client/node_modules/typescript/lib/typescript.js:78967:13)
at State.updateProgram (/Users/john/pda/pda-vnext/angular2-client/node_modules/awesome-typescript-loader/dist.babel/host.js:241:42)
at /Users/john/pda/pda-vnext/angular2-client/node_modules/awesome-typescript-loader/dist.babel/instance.js:333:27
at Compiler.<anonymous> (/Users/john/pda/pda-vnext/angular2-client/node_modules/awesome-typescript-loader/dist.babel/instance.js:354:15)
at Compiler.next (/Users/john/pda/pda-vnext/angular2-client/node_modules/tapable/lib/Tapable.js:69:14)
at Compiler.<anonymous> (/Users/john/pda/pda-vnext/angular2-client/node_modules/webpack/lib/CachePlugin.js:40:4)
at Compiler.applyPluginsAsync (/Users/john/pda/pda-vnext/angular2-client/node_modules/tapable/lib/Tapable.js:71:13)
at Compiler.<anonymous> (/Users/john/pda/pda-vnext/angular2-client/node_modules/webpack/lib/Compiler.js:400:9)
at Compilation.<anonymous> (/Users/john/pda/pda-vnext/angular2-client/node_modules/webpack/lib/Compilation.js:577:13)
at Compilation.next (/Users/john/pda/pda-vnext/angular2-client/node_modules/tapable/lib/Tapable.js:67:11)
at Compilation.<anonymous> (/Users/john/pda/pda-vnext/angular2-client/node_modules/webpack/lib/ProgressPlugin.js:69:5)
at Compilation.applyPluginsAsync (/Users/john/pda/pda-vnext/angular2-client/node_modules/tapable/lib/Tapable.js:71:13)
at Compilation.<anonymous> (/Users/john/pda/pda-vnext/angular2-client/node_modules/webpack/lib/Compilation.js:572:10)
at Compilation.next (/Users/john/pda/pda-vnext/angular2-client/node_modules/tapable/lib/Tapable.js:67:11)
at Compilation.<anonymous> (/Users/john/pda/pda-vnext/angular2-client/node_modules/webpack/lib/ProgressPlugin.js:65:5)
this dependency rely on HttpModule but it had deprecated and replaced by HttpClientModule by angular, please fix
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.