查看: 1067|回复: 10
|
怎么才能由LAMP升级去MERN STACK?
[复制链接]
|
|
都是为了手机apps还有网页的主要程序。请问有人懂得以上两个东西没有? |
|
|
|
|
|
|
|
发表于 29-7-2020 05:20 PM
来自手机
|
显示全部楼层
LAMP 就是用PHP 开发网页需要用到的Apache 等等。第二样我不懂。 |
|
|
|
|
|
|
|
发表于 30-7-2020 11:26 AM
|
显示全部楼层
MERN :Mongo,Express,React,Node
我觉得这个是完全不需要到php 了,然后要对nosql 很熟悉,syntax 和用法太不一样了
|
|
|
|
|
|
|
|
发表于 30-7-2020 11:29 AM
|
显示全部楼层
差不多重写了,我不觉得php 的page 能那么顺利的convert 去react |
|
|
|
|
|
|
|
发表于 1-8-2020 10:54 AM
|
显示全部楼层
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-8-2020 11:03 AM
|
显示全部楼层
由於 mern 都是使用 js, 只要 js 有 bug, 所有的部分 (server, client, db) 都有可能會有安全隱憂。
好處是只需要學 js 就可以處理大部分的工作。
MongoDB 和 MySQL 各有優缺點,還是要看怎麼樣使用。
php 當中的 client-side html, css js, 換去 js 應該沒什麼問題。
而 server-side 的 code 轉去 js 就差不多重寫。
|
|
|
|
|
|
|
|
发表于 1-8-2020 11:23 AM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 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
|
|
|
|
|
|
|
|
发表于 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 执行。
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|