佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1067|回复: 10

怎么才能由LAMP升级去MERN STACK?

[复制链接]
发表于 29-7-2020 01:17 PM | 显示全部楼层 |阅读模式
都是为了手机apps还有网页的主要程序。请问有人懂得以上两个东西没有?
回复

使用道具 举报


ADVERTISEMENT

发表于 29-7-2020 05:20 PM 来自手机 | 显示全部楼层
LAMP 就是用PHP 开发网页需要用到的Apache 等等。第二样我不懂。
回复

使用道具 举报

发表于 30-7-2020 11:26 AM | 显示全部楼层
褐眼睛 发表于 29-7-2020 05:20 PM
LAMP 就是用PHP 开发网页需要用到的Apache 等等。第二样我不懂。

MERN :Mongo,Express,React,Node
我觉得这个是完全不需要到php 了,然后要对nosql 很熟悉,syntax 和用法太不一样了
回复

使用道具 举报

发表于 30-7-2020 11:29 AM | 显示全部楼层
差不多重写了,我不觉得php 的page 能那么顺利的convert 去react
回复

使用道具 举报

发表于 1-8-2020 10:54 AM | 显示全部楼层
褐眼睛 发表于 29-7-2020 05:20 PM
LAMP 就是用PHP 开发网页需要用到的Apache 等等。第二样我不懂。

web stack
1. OS, usually Windows or Linux-based
2. web server, often Apache or NGINX
3. database, which might be MySQL or MariaDB
4. scripting, scripting languages like PHP, Python, Perl and JavaScript run either on the server or client-side

LAMP 和同類型的組合:

LAMP - Linux, Apache, MySQL, PHP/Perl/Python
LAPP - MySQL -> PostgreSQL
LEMP - Apache -> NGINX
LLMP - Apache -> Lighttpd
WAMP - Linux -> Windows
WISA - Windows, IIS, Microsoft SQL, ASP.NET
XAMPP - cross-OS, PHP + Perl

-----------------------------------------
MERN - MongoDB, ExpressJS, ReactJS, NodeJS
MEAN - ReactJS -> AngularJS
MEEN - AngularJS -> Ember.JS

Node.JS - server-side JavaScript.
React JS - Used for building user interfaces.
Express - Middleware are functions that are executed after a request of any route.

               In the middleware we can access request & response as usual and use them to output content, check URLs, etc.

               It makes possible to map JS methods to specific HTTP requests.
Mongo DB - database.

參考:

LAMP vs MERN: Introduction And Web Stack Comparison
27 December 2018 | Posted By:-Sunil Paul
https://www.suffescom.com/blog/l ... b-stack-comparison/

Web stack comparison
26 Apr 2018 • 5 min read
https://www.fasthosts.co.uk/blog/web-stack-comparison/






评分

参与人数 1积分 +20 收起 理由
褐眼睛 + 20 精品文章

查看全部评分

回复

使用道具 举报

发表于 1-8-2020 11:03 AM | 显示全部楼层
Mr.[N] 发表于 30-7-2020 11:29 AM
差不多重写了,我不觉得php 的page 能那么顺利的convert 去react

由於 mern 都是使用 js, 只要 js 有 bug, 所有的部分 (server, client, db) 都有可能會有安全隱憂。
好處是只需要學 js 就可以處理大部分的工作。

MongoDB 和 MySQL 各有優缺點,還是要看怎麼樣使用。

php 當中的 client-side html, css js, 換去 js 應該沒什麼問題。
而 server-side 的 code 轉去 js 就差不多重寫。






回复

使用道具 举报

Follow Us
发表于 1-8-2020 11:23 AM | 显示全部楼层
不一定是升級。

每年都有不少人從 ios 換去 android,和從 android 換去 ios。
根據自己的情況選適合自己的工作環境。

就好像 perl 是以前做 server 的必選。現在選擇就多了。

From 1991 to 200 Perl was "king of the hill"



參考:
Introduction to Perl 5.10 for Unix System Administrators
(Perl 5.10 without excessive complexity)
by Dr Nikolai Bezroukov
Last modified: September 21, 2019

http://www.softpanorama.org/Scri ... /perl_history.shtml

Perl is dying quick. Could be extinct by 2023.
7 October 2019 thehftguy42

https://thehftguy.com/2019/10/07 ... be-extinct-by-2023/







回复

使用道具 举报

发表于 3-8-2020 09:38 AM | 显示全部楼层
flashang 发表于 1-8-2020 11:03 AM
由於 mern 都是使用 js, 只要 js 有 bug, 所有的部分 (server, client, db) 都有可能會有安全隱憂。
好處是只需要學 js 就可以處理大部分的工作。

MongoDB 和 MySQL 各有優缺點,還是要看怎麼樣使用。

php  ...

就是咯,LAMP --》 MERN,frontend 从php page 换去react 了,差别太大了,不太可能Angular 和 vue 还有可能,这两个至少可以不用webpack,但是不用webpack 我也不知道用 A,R,V 来zomok

db 我没意见的,但是nosql 的syntax 和 sql 的差太远了
如果没接触过或者有senior 带需要很长时间摸, 因为用一个技术得知道和应用best practice


回复

使用道具 举报


ADVERTISEMENT

发表于 4-8-2020 11:21 AM | 显示全部楼层
你的問題就好像是怎樣把雞變成鴨

有人會養雞也會養鴨,但是沒辦法把雞變成鴨或鴨變成雞
回复

使用道具 举报

 楼主| 发表于 7-8-2020 10:14 AM | 显示全部楼层
这个问题大了,没有回头路。那么现在的刚刚毕业大学生有多少熟悉那个MERN?我们都老了。。。
回复

使用道具 举报

发表于 13-8-2020 06:56 PM 来自手机 | 显示全部楼层
phpwebcoder 发表于 7-8-2020 10:14 AM
这个问题大了,没有回头路。那么现在的刚刚毕业大学生有多少熟悉那个MERN?我们都老了。。。

开发网页 HTML CSS JavaScript 是必须的基本功。
不论是 server site 还是 client site, 要更新网页的内容也是要把这些发送到用户的 browser 执行。



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 29-3-2024 09:49 AM , Processed in 0.064250 second(s), 28 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表