rmcdaniel / angular-codeigniter-seed Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi, Awesome seed project, got started in no time!
I'm trying to add SEO to my app.
I'm using ui-router-metatags to have dynamic meta-tags on every page but the problem is that only Chrome's crawler runs javascript and waits for the DOM to load when it indexes pages, all the others(facebook, tweeter etc) don't, and they take the html as is.
There are a lot of paid services that pre-render the angular pages and cache them for when the crawler comes, but i don't want to pay, and i don't need the volumes that they offer (seo4ajax, brombone, prerender.io etc).
So i'm thinking in the direction of rendering some pages(don't have to be all of them) on the server and serving them as ready HTML.
Any idea how i would start doing that with this seed?
here is a sample from my routing if that would help:
.state('audio', {
url: "/audio/:songTitle",
templateUrl: root + 'templ/audio',
controller: 'audioController as audio',
resolve: {
songTitle: function ($stateParams) {
return $stateParams.songTitle;
}
},
metaTags: {
title: function (songTitle) {
return songTitle;
},
//TODO: add dynamic description
description: 'song desc',
properties: {
'og:title': function (songTitle) {
return songTitle;
},
'og:type': 'audio',
//TODO: add dynamic description
'og:description': 'song desc',
'og:image': root + 'images/logo.png'
}
}
})
hi,
just a question about JWT. Context is an angular webapp (in Ionic for example) and a CI API server.
is it safe to never expires the token ? What are best practices ?
Thanks
Parse error: syntax error, unexpected T_FUNCTION in /WWWROOT/84804/htdocs/api/application/core/REST_Controller.php on line 23
Hey there!
I really like the idea of this as I was looking for a way on combining codeigniter with angularjs and using json web tokens!
When I place the repo files in public_html
the angular app itself seems to work but when I make requests to the server I get a 404 message. Would you be able to point me in the right direction to get the calls to codeigniter working?
Firstly Thank you very much for sharing this.
Could you please let me know where I can find Database for running application properly.
hi there,
its already aug 2018, would you like to update the codeigniter into latest version?
it seems so many of developers that might look for the update as well
thanks in advance
best regards
Hey rmcdaniel nice code man, i got to working almost, i have the database and the tables populated also i am getting json response correct from the rest controllers to angular frontend but it just keep showing error even when the data.success is true....... please point me to the right direction what am i missing thats all......
According to the JWT spec, there are only two algorithms that are required in a JWT implementation...HS256
and none
. The implementation of this class wouldn't return any data if alg
in the header is set to none
.
If you do implement none
, please note this possible vulnerability (if not accounted for): https://auth0.com/blog/critical-vulnerabilities-in-json-web-token-libraries/
Hi, The code is working but when I am tring to login its returning status true means it success but with issue this below as well. Please help me why is that so ?
Severity: Notice
Message: Only variable references should be returned by reference
Filename: core/Common.php
Line Number: 257
I'm getting this error
ReferenceError: i18n is not defined at link (http://domain.com/js/directives.js:1:1988)
How can I fix it?
Thanks
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.