0.0.20 • Published 10 years ago

generator-konode v0.0.20

Weekly downloads
6
License
MIT
Repository
github
Last release
10 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

10 years ago

0.0.19

10 years ago

0.0.18

10 years ago

0.0.17

10 years ago

0.0.16

10 years ago

0.0.15

10 years ago

0.0.14

10 years ago

0.0.13

10 years ago

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago