I have a question about CMS, currently I developed a website on Node.JS server using Express.Js and EJS.
The thing is I'm pretty bad for webdesign and I want to know if it's possible to use CMS like Wordpress to construct my FrontEnd ?
I read than WordPress using Apache/php and couldn't work with Node.
Thanks !
You can use Gatsby for example, will allow you to use the API from most CMS and use them in your own React app
Related
I am a newbie to development and I recently created a MERN Stack Application which uses reactjs as the frontend, Nodejs with express as the Backend, and MongoDB as the Database. After that, I searched for some methods to SEO this application. But in many articles on the internet, they have mentioned that we can't SEO Reactjs applications and instead we need to implement SSR(Server side rendering). So now I have the following questions. Could someone explain these, please?
Can we upgrade the existing MERN application to NextJs?
Is there any other methods to SEO this MERN Application?
So do I have to prevent using React as the frontend in my future projects? Instead, do I need to use Nextjs definitely in my future projects? If so reactjs is useless?
Thank You.
Surjeet has covered your first question nicely. In answer to you second and third question there are tools such as React Router and React Helmet which can add some SEO to a React project. There's a helpful article about it here:
https://medium.com/#prestonwallace/3-ways-improve-react-seo-without-isomorphic-app-a6354595e400
The quick summary is that React Router will allow you to generate a uri for each new route. React Helmet creates metadata tags in the header of a component such as a title or the description of the page, which googlebot can then pick up.
Yes, You cannot do SEO of a react application. You have to use SSR for it.
Answers to your questions:
1. Can we upgrade the existing MERN application to NextJs?
Yes you can but it's a lengthy manual process. All of your components you can use directly. There are many things you need to change:
Routing (NextJs has a different way of routing)
Way of Importing Styles
Run Scripts in package.json
If you have used browser things like window object, localStorage then you have to handle those in SSR
And there may be other issues you might face while running the app
2. Is there any other methods to SEO this MERN Application?
No, SSR is a must
3. Do I have to prevent using React as the frontend in my future projects? Instead, do I need to use Nextjs definitely in my future projects? If so reactjs is useless?
Go with NextJs if SEO is a must and you want SSR (Ex: E-Commerce Site, Personal Site)
Go with React if no SEO (Ex: Admin Panel, Specific User-based Web App)
Im building a website in school and we need to use a headless CMS to manage the website when it's finished. Im using react on the front end.
My question is can i use a backend server like node js with a headless CMS or would that be unnecessary / not make sense? Im learning node and graphql in school atm and wanted to implement that to this website, could i do that alongside with a headless CMS?
Tanks for answers!
Yes, using NextJS for example. This adds a serverside part to your application.
Depends whether you're building headless cms yourself or just using available options like Strapi or others.
I want to build a self-hosted website with nodejs and the express framework because I'm already familar with that. However, using a CMS for this project is a requirement, so I'm looking for a suited and easy-to-use/-learn CMS and discovered strapi which I quite like.
Setting up an API with strapi is easy indeed but now I'm struggling with adding strapi to an express server. My goal is one express server with strapi, which also hosts the website. So, I can control the routing with express (which I'm used to) and can render the site on the server.
Can somebody explain me how to do that and maybe give a small example? The examples I found, are only about hosting the API externally and using a client-side web framework or a static site generator.
Or is my vision not possible with strapi and I should use another CMS like KeystoneJS (which is already built on Express)?
Thanks in advance!
Using Express with Strapi must be very complex and does not really make sense.
Strapi is based on Koa, which has been designed by the team behind Express. If you are coming from Express, eyou will get confortable with Koa very quickly. Here is the documentation: https://koajs.com.
I need a good web hosting where I can use node.js.
I have alot experience about cpanel and basic webhotel but I dont know how to use/install node.js.
I'm mainly using html, php, javascript and mysql but I have some features that need node.js.
Can you help me if you know good sites or you know how to use node.js in cpanel
Here is good post: http://codecondo.com/hosting-platforms-for-node-js/
These web sites have (pre)installed note.js, so no need aby installation.
I was wondering if anyone has tried using Magento just as a backend and use Node.js for serving the frontend. Its seems much more flexible and more practical for multistores.