Thursday, March 30, 2017
In our AngularJS SPA application we will be using the Express web server to serve up our web application. In the previous blog post we installed the Express-generator globally. Now we can install Express in the root folder of our SPA application.
Here are the steps to create an Express application:
1. Open the command line prompt at the root folder of the SPA application
2. Type "express" without the into the command line you will get a warning that jade will not the default view template type "y" to continue
3. Once you type "y" a bunch of folders will be created for your application folder
4. Now type npm install to install the latest node version and all the dependencies that express needs
5. To start the express server type npm start
6. To verify that express is working open the browser and type http://localhost:3000
you should see the following
7. Now we want to nodemon so that we don't have to constantly stop and restart express to see our changes. To install nodemon first you have to install it globally by typing in npm install -g nodemon n
8. Now type nodemon to let nodemon monitor node for changes. Make sure you are at the root of your application when you type nodemon
Posts In The AngularJS SPA Application Series:
Here are the steps to create an Express application:
1. Open the command line prompt at the root folder of the SPA application
2. Type "express" without the into the command line you will get a warning that jade will not the default view template type "y" to continue
3. Once you type "y" a bunch of folders will be created for your application folder
4. Now type npm install to install the latest node version and all the dependencies that express needs
5. To start the express server type npm start
6. To verify that express is working open the browser and type http://localhost:3000
you should see the following
7. Now we want to nodemon so that we don't have to constantly stop and restart express to see our changes. To install nodemon first you have to install it globally by typing in npm install -g nodemon n
8. Now type nodemon to let nodemon monitor node for changes. Make sure you are at the root of your application when you type nodemon
Posts In The AngularJS SPA Application Series:
- Setting Up Angular-Seed
- Preparing Angular-Seed For The Shopping List Application
- Refactor Code to Not Use Global Variables (Shopping List App)
- Installing MongoDB
- Create a MongoDB Configuration FIle
- Install mongoDB as a Windows Service
- Installing Express generator
- Installing ExpressJS Application Server
- Creating The SPA Project Folder Structure
- Setup Express To Serve Static Files
- Setup The Shopping Application For Heroku And Testing It Locally
- Deploy Shopping List Application To Heroku
- Install RoboMongo GUI for MongoDB
Subscribe to:
Post Comments (Atom)
Search This Blog
Tags
Web Development
Linux
Javascript
DATA
CentOS
ASPNET
SQL Server
Cloud Computing
ASP.NET Core
ASP.NET MVC
SQL
Virtualization
AWS
Database
ADO.NET
AngularJS
C#
CSS
EC2
Iaas
System Administrator
Azure
Computer Programming
JQuery
Coding
ASP.NET MVC 5
Entity Framework Core
Web Design
Infrastructure
Networking
Visual Studio
Errors
T-SQL
Ubuntu
Stored Procedures
ACME Bank
Bootstrap
Computer Networking
Entity Framework
Load Balancer
MongoDB
NoSQL
Node.js
Oracle
VirtualBox
Container
Docker
Fedora
Java
Source Control
git
ExpressJS
MySQL
NuGet
Blogger
Blogging
Bower.js
Data Science
JSON
JavaEE
Web Api
DBMS
DevOps
HTML5
MVC
SPA
Storage
github
AJAX
Big Data
Design Pattern
Eclipse IDE
Elastic IP
GIMP
Graphics Design
Heroku
Linux Mint
Postman
R
SSL
Security
Visual Studio Code
ASP.NET MVC 4
CLI
Linux Commands
Powershell
Python
Server
Software Development
Subnets
Telerik
VPC
Windows Server 2016
angular-seed
font-awesome
log4net
servlets
tomcat
AWS CloudWatch
Active Directory
Angular
Blockchain
Collections
Compatibility
Cryptocurrency
DIgital Life
DNS
Downloads
Google Blogger
Google Chrome
Google Fonts
Hadoop
IAM
KnockoutJS
LINQ
Linux Performance
Logging
Mobile-First
Open Source
Prototype
R Programming
Responsive
Route 53
S3
SELinux
Software
Unix
View
Web Forms
WildFly
XML
cshtml
githu
Liên hệ Aivivu, đặt vé máy bay tham khảo
ReplyDeletevé máy bay đi Mỹ Vietnam Airline
các chuyến bay từ mỹ về việt nam hôm nay
giá vé máy bay từ Toronto đến việt nam
đặt vé về việt nam từ nhật
đặt vé máy bay từ hàn quốc về việt nam
Vé máy bay từ Đài Loan về VN
chuyến bay dành cho chuyên gia