📜  使用节点 js 作为后端和 Angular 前端 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:17.648000             🧑  作者: Mango

代码示例1
1. Create a folder: mkdir project-name
2. Enter in the folder: cd project-name
3. Install Angular (you must have npm): npm install -g @angular/cli
4. Create Angular project: ng new frontend
5. Create server folder: mkdir server
6. Enter in the folder: cd server
7. Init Nodejs: npm init
8. Create index.js in server
9. Setup proxy in Angular to use Nodejs