Hope this helps! I have been using AngularJS for years now and I love it so much!
What Is AngularJS
Next, unzip the downloaded file on your desktop or any other location where you can find it easily.
Now open up a terminal window on your computer and change it into the folder that contains angularjs using “
Here is a guide on how to run the AngularJS project on your computer. First, you need to start the server. You can do this by running two commands in two different windows. You will use these commands when coding your app code files, too.
- View to Model – Changes made to the View are shown in the Model.
- Model to View – If you change the Model, the View will change.
Run angularJS project on web server
This is important because it’s not good practice to have the entire app running from localhost. directly opening up files in a browser window as they may be accessible by other people using that computer or even worse.
if someone were able to access those files over HTTP instead of HTTPS which can lead them being vulnerable for various security attacks such as Man-In-The-Middle Attacks!
If you are running node.js:
1. Run node
scriptsweb-server.js to start the webserver
2. In your browser, navigate to
Running Xampp Webserver
In your browser, navigate to
Example angular-phonecat to run: http://localhost:8000/angular-phonecat/app/
Note: if you are seeing an error with xampp listening port 8000 then maybe your port is 8080 by default.
To change port in xampp do the flowing step:
1. Open the path
httpd.conf file and open it
Listen 80 to change it
Save the file.
Then restart apache.
Running Others WebServer
Running your own web server for others to access is a good learning experience and can give you great flexibility in the long run.
Running one’s own web servers gives users full control over their website, which allows them more freedom than websites hosted on public hosting providers like Amazon Web Services (AWS).
Furthermore, running a personal site reduces costs since there is no need to pay monthly fees or purchase additional services such as CDN service from AWS.
If you are running some other http server:
1. Make sure the
/angular-phonecat repository was cloned into your
2. Navigate in your browser to
Windows Command Line
cd /d C:xampp
On Git Bash window
$ node scripts/web-server.js Http Server running at http://localhost:8000/
That’s It I hope you will find the solution here.
To share the article.
AngularJS is an open-source, front end web framework. It’s designed to make both large and small-scale web applications faster by easing the common tasks of building single-page apps.
If you’re looking for a way to simplify your development process while speeding up your website load times, then AngularJS might be just what you need! Our team at The Startup Factory can help get you started today – give us a call anytime so we can discuss how our experts will build the