- https://www.youtube.com/watch?v=wz-ZkLB7ozo&list=PLSXayGBdAAQAKAygXM3ZZrO0wxpMUIWJM (Part 1 - Part)
- http://teknosains.com/i/simple-crud-nodejs-mysql
- Node js and NPM: https://nodejs.org/en/download/
- Express npm install express -g npm install express-generator -g
- Bower npm install bower -g
- MySQL (Wamp) Add C:\wamp\bin\mysql\mysql5.6.12\bin in Environment Variable - Path
- Git: https://git-scm.com/downloads
Confirm all the required tools are installed correctly
- node -v
- npm -v
- express --version
- bower -v
- mysql --version
- git --version
express app-name
cd app-name
npm install
npm init //to modify the package.json configuration
npm install mysql --save
npm install express-myconnection --save
npm install ejs --save
npm install stylus --save
bower init //for bower.json
bower install angular --save
bower install bootstrap --save
see this: database/database-schema.md
app.set('view engine', 'ejs'); app.use('/bower_components', express.static(__dirname + '/bower_components'));
index.ejs <% include layout %>
- public
- javascripts (folder)
- app
- domain
- domainModule //module name
- domainService //api or service routes
- domainController
- viewDomainController
- editDomainController
- domain
- app
- javascripts (folder)
- routes
- domainRouteConfig.js //route, render
- Server (folder)
- Dao //sql
- domainDao.js //sql queries
- mysqlConnectionString.js //database connection credentials
- mysqlConnectionStringProvider.js //getMysqlConnection, closeMysqlConnection
- Dao //sql
- views (folder) //template
- app.js
<p ng-bind="date | date:'MM/dd/yyyy'"></p>
http://stackoverflow.com/questions/22392328/how-to-format-date-in-angularjs