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
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