# |
Dec 29th 2018, 19:37 |
k4t |
no, but I did: $this->set(‘_serialize’, true) |
# |
Dec 29th 2018, 19:36 |
challgren |
Are you $this->set(‘_serialize’, [])? |
# |
Dec 29th 2018, 19:35 |
k4t |
of course @challgren |
# |
Dec 29th 2018, 18:51 |
challgren |
@k4t https://book.cakephp.org/3.0/en/views/json-and-xml-views.html#enabling-data-views-in-your-application |
# |
Dec 29th 2018, 18:49 |
challgren |
@k4t are you loading RequestHandler? |
# |
Dec 29th 2018, 18:28 |
NickBusey |
Users won’t know about cake or react. They just login to the site, not sure what your concern is |
# |
Dec 29th 2018, 18:26 |
NickBusey |
Not really worried about anyone else, just making this for fun |
# |
Dec 29th 2018, 18:26 |
NickBusey |
My target user base is myself. |
# |
Dec 29th 2018, 18:26 |
NickBusey |
Haha, no they don’t. They just use the interface |
# |
Dec 29th 2018, 18:26 |
challgren |
They’ll get frustrated and use something else |
# |
Dec 29th 2018, 18:26 |
challgren |
Your target user base is home brewers not developers |
# |
Dec 29th 2018, 18:23 |
challgren |
But nick think of it from a new user perspective they are going to have to learn cake and react just to use your app |
# |
Dec 29th 2018, 18:22 |
itmpls |
lol |
# |
Dec 29th 2018, 18:21 |
k4t |
and well... google is not the only search engine... I know I know... |
# |
Dec 29th 2018, 18:21 |
NickBusey |
Also it will be targeting self Hosters, so no bandwidth concerns. Also the core cake app remains if they prefer |
# |
Dec 29th 2018, 18:21 |
NickBusey |
For my app seo is definitely not a concern |
# |
Dec 29th 2018, 18:20 |
challgren |
Plus why force your users that maybe on limited BW to download 5mbs when they only need like 700kb |
# |
Dec 29th 2018, 18:20 |
challgren |
Hehe yep! But I’m also a SEO guy so Im not a fan of SPAs cause of that. |
# |
Dec 29th 2018, 18:19 |
itmpls |
@challgren would like to launch that rocket launcher at SPAs :P |
# |
Dec 29th 2018, 18:19 |
challgren |
And also look at page load time. SPA causes huge load times from my experiences. I’ve seen SPA apps taking as much as 5mbs just to load |
# |
Dec 29th 2018, 18:18 |
itmpls |
such as? |
# |
Dec 29th 2018, 18:18 |
k4t |
but there are some improvements/tricks to get better SEO when you are creating SPA app |
# |
Dec 29th 2018, 18:18 |
itmpls |
but who knows the full extent |
# |
Dec 29th 2018, 18:18 |
itmpls |
not new |
# |
Dec 29th 2018, 18:18 |
itmpls |
since many years |
# |
Dec 29th 2018, 18:18 |
itmpls |
yep |
# |
Dec 29th 2018, 18:17 |
k4t |
google bots are able to execute JavaScript |
# |
Dec 29th 2018, 18:17 |
k4t |
SEO for SPA apps is a bit different story |
# |
Dec 29th 2018, 18:17 |
itmpls |
or you mean some other part of SEO |
# |
Dec 29th 2018, 18:17 |
k4t |
if statement is executing |
# |
Dec 29th 2018, 18:17 |
itmpls |
history or push states or what not? |
# |
Dec 29th 2018, 18:17 |
itmpls |
if you use certain techniques |
# |
Dec 29th 2018, 18:17 |
challgren |
@k4t remove the if statement |
# |
Dec 29th 2018, 18:17 |
itmpls |
isn't google smart enough to detect JS nowadays? |
# |
Dec 29th 2018, 18:16 |
challgren |
But Nicks approach sounds like it doesnt need SEO |
# |
Dec 29th 2018, 18:16 |
k4t |
@admad I added following code to my AppController: https://gist.github.com/K4T/6b6e9b73b214fd1d9fd3bda235cbea97 and it still wants from me to create view templates when I use url without .json extension ;( |
# |
Dec 29th 2018, 18:15 |
challgren |
Yall must not care about SEO |
# |
Dec 29th 2018, 18:15 |
k4t |
I did some code in AngularJS 1.x and meh... that was terrible experience |
# |
Dec 29th 2018, 18:15 |
k4t |
I choosed Vue becuase of small learning curve and it is really easy (it looks like it is easy...) |
# |
Dec 29th 2018, 18:14 |
k4t |
@nickbusey funny as at the moment I am working on REST API in Cake for my SPA which I will create jsut for learn Vue |
# |
Dec 29th 2018, 18:13 |
challgren |
I’d rather a rocket launcher :P |