The role of koa2 in anterior and posterior separation

generate a project with vue-cli, you can realize the front-end requirements, including node server, webpack, etc., and then add axios. What kind of project should koa2 be used in? the current technology stack is vue,. Is there any recommended technology for backend if you want to do a Mini Program?

May.26,2021

koa2 has nothing to do with vue . One front end and one back end should be decoupled, that is, your front end (vue) just send the request, and the back end (koa2 , express , php , java..) accepts the request and performs corresponding operations to return the data in the established format. When the foreground and background are separated, it can be used as the foreground server alone


koa is the backend framework and vue does not have much relationship. Mini Program's backend can be developed with koa

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e58aa2-43a7b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e58aa2-43a7b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?