0.0.20 • Published 9 years ago

generator-konode v0.0.20

Weekly downloads
6
License
MIT
Repository
github
Last release
9 years ago

generator-konode

Knockout.js and Node.js(express) template for Yeoman Generator.

this template is for Simple Page Application.

built-in

・jquery

・bootstrap

・knockout

Preparation

Install Node.js

https://nodejs.org/

Install git client

for Windows

https://msysgit.github.io/

for Mac

http://sourceforge.net/projects/git-osx-installer/

Install bower, grunt, yeoman

for Windows

npm install -g node-dev bower grunt-cli yo

for Mac

sudo npm install -g node-dev bower grunt-cli yo
sudo git config --global url."https://".insteadOf git://

Install generator

for Windows

npm install -g generator-konode

for Mac

sudo npm install -g generator-konode

Create New Project

for Windows

if you wanto to create new Project, path(C:\project\test)

mkdir C:\project\test
cd C:\project\test
yo konode

for Mac

if you wanto to create new Project, path(/Users/user/project)

mkdir -p /Users/user/project
cd /Users/user/project
yo konode

Start Node

node-dev app.js

Access App

http://[hostname]:3000

Development

Implement these files

Client Side

public/src/index.html
public/src/assets/js/script.ts

Server Side

app.ts

Manual Compile Typescript

grunt compile

Auto Compile Typescript on File Edited

grunt watch

Add Library

bower install [package-name] --save
copy [css file to public/src/assets/css/] or [js file to public/src/assets/js/] //manually step
grunt addlib
0.0.20

9 years ago

0.0.19

9 years ago

0.0.18

9 years ago

0.0.17

9 years ago

0.0.16

9 years ago

0.0.15

9 years ago

0.0.14

9 years ago

0.0.13

9 years ago

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago