T
T
tcLutin2020-01-03 13:51:57
CMS
tcLutin, 2020-01-03 13:51:57

What technologies should be used when creating a CMS on js?

In general, I am a beginner, but I set myself the goal of writing a CMS in JS in the future. I wanted to ask what technology would you use? Would you use NodeJS packages or write everything from scratch?

PS If you can, then tell us about your experience in developing CMS on JS.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Valery Kulakov, 2021-01-05
@tcLutin

Of course I would use packages.
Although it all depends on the goal you set for yourself. When I had a learning goal to write my own framework for developing the server side on Node, of course, I wrote everything myself, on this I mastered the design patterns, architecture, and even Node itself (EventEmitters, etc).
But when I want to focus not on template code (a la error handling, authorization and routing), but on solving the task, I (like, probably, the vast majority of programmers of any technology / language) of course use ready-made solutions. Although, for some small and fairly simple things, you can write your own middleware, say.
As far as technology advice, I would use expressas an application framework (this is a small and simple framework, the main task of which is to implement the Chain of Responsibility + routing pattern). For authorization, I would use passport . For the frontend, I would take the pug template engine . It should be understood that the first two are the de facto standard for many, but the third recommendation (pug) does not really affect anything at all, it's just a matter of habit / convenience. If you know another template engine - use it. Also I would install an admin panel like adminbro . Naturally, there will be many more smaller packages, such as "jsonwebtoken" for tokens, if you use them, etc. You can write something completely by hand, for example, authorization. Or admin panel. But for this you need to clearly understand how this is done.
The last advice - as a beginner)) Do not try to install a bunch of packages without understanding how they work. If you are just starting to learn programming - study patterns, OOP. Learn about client-server architecture. Write a couple of simple applications in pure JS (since you took it up), for example, todo-app. Learn the core functionality of Node. Learn Express at the same time. If you know/want to learn TypeScript, take a look at loopback (only for CMS it is not very suitable, it seems to me).

N
Nadim Zakirov, 2020-01-03
@zkrvndm

I would make a CMS on a bunch of JavaScript / PHP, why not be smart here. Moreover, it is for PHP that there are simply heaps of materials on the Internet, up to examples of creating a mini-CMS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question