turvy

Full-stack project generator

Usage no npm install needed!

<script type="module">
  import turvy from 'https://cdn.skypack.dev/turvy';
</script>

README

{ Turvy }

Full-stack boilerplate (think v2 of expresso)

Extended from topsy

turvy

Requirements

  • NodeJS/NPM

Usage

Install

npm install -g turvy

Initialize project

turvy init -p new_project # turvy help for more options

Generator

cd new_project && turvy spin

Develop

cd _dev && gulp

Then visit http://localhost:7000 to see the example app running and ready for development or http://localhost:7001 for the BrowserSync version.

Components

  • RequireJS
  • Zepto.js
  • Lodash.Underscore
  • Backbone
  • PrismJS
  • Mixen
  • Q
  • Mongoskin (MongoDB)

Directory structure

  Turvy
  |____ turvy.json (Generator configs)
  |
  |____ _dev (Development Directory)
  |     |____ _src
  |     |     |____backend
  |     |     |____frontend
  |     |     |____test
  |     |     |____vendor
  |     .
  |     .
  |     |____ gulpfile.coffee
  |     |____ package.json
  |
  |____ _static (Deployable Project)
        |____ css
        |____ js
        |____ index.html

TODO

  • Update code for gulp watch/livereload, etc
  • Add linespin
  • Put example in branch and stripped down boilerplate on master
  • Prettify output
  • Fix .gitignore issues
  • Consider BrowserSync over Livereload
  • Better gulp tasks and deployer task
  • Better CLI control and options
  • Use better file copier for examples (to prevent entire project copies)
  • Add heroku info to env
  • Add heroku configs
  • Consider multiple deploy options in gulp i.e. heroku, github, etc

Copyright

Copyright © 2014 Nicholas Hwang