I'm new to AngularJS. I created a sample app using yeoman for AngularJS. The source is hosted on github here https://github.com/Omnipresent/demoangularapp
I'm not sure how to run the app?
How can I run the app so that it runs on my localhost server and I can play around with it?
Depending on which task runner you are using: Run CLI command gulp serve
, grunt serve
or npm run serve
if you have the node package serve
installed to start a local webserver. In your case it should be gulp serve
while you using gulp
this time. Run this CLI commands in your project root directoy or create a host/vhost witch points to your yo generated app directory
where your index.html
has been created.
This commands will start an local webserver.
For mor information checkout the yo documentation .
It doesn't matter if application is generated with yeoman, it's just a scaffolding tool. You should run bash with commands: npm install, gulp serve. also make sure that you have gulp installed both globally and locally.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.