DEV Community

Discussion on: PHP or Node.JS in 2020?

Collapse
 
wolfuser99 profile image
Juan Antonio

I think your fastest option will be with laravel, and if you want to learn something new you should start by split the API and the webpage (leaving behind blade) possibly making it with nuxtjs as you mention.
As your API probably will be rest, should be pretty easy to communicate with your website by using axiosjs to request the data your page need to show.

On the other hand, if you really want to go full nodejs and have a lot of time, you should take a look at nestjs docs(it can use express and typescript) and add sequelize-typescript as orm and passport for the oauth.

Collapse
 
deepslam profile image
Dmitry Ivanov

Hello!

Thank you so much for this opinion.
I came to the same conclusion.

Have a nice day, bud!

Collapse
 
zexias profile image
Matheus Faustino

For building API I go a 100% with API Platform. It's almost perfect, very extensible, swagger out-of-the-box, hydra support, graphql, etc. I recommend testing it to see if you like it: api-platform.com/