Code Monkey home page Code Monkey logo

express-city's Introduction

express-city

express-city, express template.

install

git clone https://github.com/geta6/express-city
cd express-city
npm i

config

cp config/env.json.sample config/env.json

tasks

run as development mode

make dev

run as production mode

make run

build assets by grunt

make build
// or
make watch

run test

make test

foreman - manage process

foreman start

scaffold - 超simple generator

$ ./bin/scaffold
Usage: scaffold -t [type] -n [name]

  -t, --type  : event or model or helper
  -n, --name  : name of file

MIT LICENSE

Copyright © 2013 geta6 licensed under MIT

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

express-city's People

Contributors

geta6 avatar shokai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

express-city's Issues

grunt-contrib-coffee/jade/stylusはdependenciesなのではないか

coffee/jade/stylusをコンパイルするのに必要なnpmはdevDependenciesではなくdependenciesなのではないか?

リポジトリにはコンパイル済みのjsやcssはcommitしないようにgitignoreされているし、実質起動するのに必要なのでdependenciesなんじゃないですかね。

http://node-linda-base.herokuapp.com は、herokuはデプロイ時にdependenciesしかインストールしてくれないのでsupertestとmocha以外dependenciesに移動させた

grunt watchがemacsの一時ファイルによって強制終了する

emacsが一瞬だけ作る.#ファイル名というファイルがあります。それをwatchしてしまい、coffeeやlintに投げてしまうと落ちるらしい。

エラーログ

Running "watch" task
Waiting...
Warning: ENOENT, no such file or directory '/Users/sho/src/nodejs/node-linda-base/assets/js/.#tuplespace.coffee'

Running "watch" task
Waiting...
Warning: Maximum call stack size exceeded

Running "watch" task
Waiting...
Warning: Maximum call stack size exceeded

Running "watch" task
Waiting...
Warning: Maximum call stack size exceeded

というエラーが続いて、gruntのプロセスが強制終了する

解決方法?

nodeinitでは起きなかったので、grunt-watchのoptions.interruptがあれば防げる気がする

もうすこし検証します

express 3.4.7で警告が出る

express 3.4.7にしてみたら起動時にmultipartとlimitが今後無くなるって表示された

NDOE_ENV=development \
        PORT=3000 \
        coffee ./config/web.coffee
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0
Express server listening on port 3000

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.