angularjs-express-mysql

所属分类:MySQL数据库
开发工具:JavaScript
文件大小:430KB
下载次数:0
上传日期:2017-12-05 23:26:14
上 传 者sh-1993
说明:  Yeoman AngularJS NodeJS Express MySQL框架商店,论坛,支持,新闻板
(Yeoman AngularJS NodeJS Express MySQL framework Store, forum, supports, news board)

文件列表:
.idea (0, 2017-12-06)
.idea\encodings.xml (2482, 2017-12-06)
backend (0, 2017-12-06)
backend\app.js (4707, 2017-12-06)
backend\bin (0, 2017-12-06)
backend\bin\forever (308, 2017-12-06)
backend\bin\www (2060, 2017-12-06)
backend\config (0, 2017-12-06)
backend\config\log4js.json (692, 2017-12-06)
backend\config\mailer.js (3257, 2017-12-06)
backend\config\passport.js (1655, 2017-12-06)
backend\config\settings.sample.js (831, 2017-12-06)
backend\controllers (0, 2017-12-06)
backend\controllers\articles.js (17494, 2017-12-06)
backend\controllers\assets.js (13950, 2017-12-06)
backend\controllers\auth (0, 2017-12-06)
backend\controllers\auth\mails.js (3373, 2017-12-06)
backend\controllers\auth\roles.js (346, 2017-12-06)
backend\controllers\auth\sessions.js (2362, 2017-12-06)
backend\controllers\auth\users.js (10492, 2017-12-06)
backend\controllers\forums.js (6517, 2017-12-06)
backend\controllers\option_types.js (4063, 2017-12-06)
backend\controllers\option_values.js (3333, 2017-12-06)
backend\controllers\orders.js (49727, 2017-12-06)
backend\controllers\payment_methods.js (2993, 2017-12-06)
backend\controllers\products.js (21509, 2017-12-06)
backend\controllers\profiles.js (16986, 2017-12-06)
backend\controllers\shipments.js (709, 2017-12-06)
backend\controllers\shipping_methods.js (3025, 2017-12-06)
backend\controllers\taxonomies.js (5615, 2017-12-06)
backend\controllers\taxons.js (3062, 2017-12-06)
backend\controllers\tickets.js (32059, 2017-12-06)
backend\controllers\topics.js (32539, 2017-12-06)
backend\controllers\variants.js (6347, 2017-12-06)
backend\models (0, 2017-12-06)
... ...

- This is `MySQL` database version. - `MongoDB` database version is [usemodj/SmartPlug](https://github.com/usemodj/smartplug) ## Install Backend Express module Ubuntu: ``` $ sudo apt-get install nodejs npm imagemagick $ sudo ln -s /usr/bin/nodejs /usr/bin/node ``` ``` $ cd backend $ backend> npm install ``` ## Install Frontend AngularJS module - Install bower: $ sudo npm install -g bower ``` $ cd ../frontend $ frontend> npm install $ frontend> bower install $ frontend> mkdir app/uploads ``` - Setting site info: ``` $ frontend> vi app/scripts/common/settings.js ``` - Paygate Card Payment Infomation: ``` $ frontend> vi app/views/partials/orders/orders.paygate.html ``` ## Run server to backgroud - Create database: ``` CREATE DATABASE nodesoft2 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; ``` -- Setting Database Info: ``` $ backend> vim config/settings.js ... database: { database: "nodesoft2", user: "root", password: "", } ... ``` - Install pm2, production process manager for NodeJS applications: ``` $ sudo npm install -g pm2 grunt grunt-cli $ backend> pm2 start ./bin/forever ``` - Run production mode: ``` // ngminify: $ frontend> grunt build $ frontend> mkdir dist/uploads $ backend> NODE_ENV=production pm2 start ./bin/forever $ backend> NODE_ENV=production pm2 list $ backend> NODE_ENV=production pm2 stop forever ``` ## Login web server ``` URL: http://localhost:3000 Login Email: admin@example.com Login Password: admin ``` ## Demo Site [nodesoft.co.kr](http://nodesoft.co.kr) --------------------- On Windows: - Install grunt-cli instead of grunt $ npm install -g grunt-cli ## Grunt test ``` $ grunt $ grunt test ``` ## Run Grunt server ``` $ grunt serve ``` Browser connection http://localhost:9000 --------------- ## Yeoman AngularJS Generator Available generators: angular (aka angular:app) angular:controller angular:directive angular:filter angular:route angular:service angular:provider angular:factory angular:value angular:constant angular:decorator angular:view ### yo angular:factory [options] ``` Usage: yo angular:factory [options] Options: -h, --help # Print generator's options and usage Default: false --coffee # Description for coffee Default: false Arguments: name # Type: String Required: true ``` > $ yo angular:factory UserFactory ### yo angular:controller [options] ``` Usage: yo angular:controller [options] Options: -h, --help # Print generator's options and usage Default: false --coffee # Description for coffee Default: false Arguments: name # Type: String Required: true ```

近期下载者

相关文件


收藏者