This project was generated with Angular CLI version 7.0.4.
# 克隆代码
git clone https://github.com/mind-edu/MindmapFrontendAnt.git
# 进入文件夹
cd MindmapFrontendAnt
# 下载依赖
npm install
# 运行项目
ng serve
在浏览器上打开 http://localhost:4200/
Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
ng build --prod --base-href /Mindmap-Frontend-Ant/
将dist目录下的文件复制到webapps目录下即可通过server_ip:8080/Mindmap-Frontend-Ant访问
在服务器上运行,只要服务器上安装有 Docker 环境,不需要安装有 Nodejs 和 NPM,省时省力。
# 生成镜像
docker build -t myapp .
# 运行容器
docker run -d -p 8080:80 myapp
通过 ip地址:8080 访问,端口也可以自己修改
Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.
Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.
Run ng test to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.