generator-socket-ng1
v1.1.0
Published
Boilerplate code for projects using AngularJS and socket.io.
Downloads
9
Maintainers
Readme
generator-socket-ng1
Generates the boiler-plate code for using AngularJS client with Socket.io in the backend to develop realtime projects.
Getting started.
First, install Yeoman and generator-socket-ng1 using npm (we assume you have pre-installed node.js) - if you need to manage multiple versions of node also consider nvm.
Once node is installed, run this in your terminal.
npm install -g yo generator-socket-ng1
Then generate your new project:
yo generator-socket-ng1
Directory structure
|
|-->public
| |--> index.html
| |--> images
| | |--> favicon.ico
| |--> scripts
| | |--> app.js
| | |--> controllers
| | |--> services
| |--> styles
| | |--> app.css
| |--> views
|--> app.js
|--> LICENSE.md
|--> package.json
|--> README.md
|--> .gitignore
Sample Usage
Running the generator
Running the server of generated app
Client app
Build Setup
# install dependencies
npm install
# run linting tests
npm run pretest
# run all tests
npm test
License
MIT © Ramkrishna Pattnaik