Giter Club home page Giter Club logo

ses-barebones's Introduction

ses-barebones

A barebones feature app of see-eat-sleep, an example of building a larger app with multiple smaller feature apps using npm and browserify.

Use it to build more features for see-eat-sleep

Initialize and install deps

npm install

Launching app

npm start

Running tests

npm test

How to proceed

Fork this repository. Replace all --id-- references in package.json with the name of your feature and rename/edit several files to make them specific to your feature.

Then add functionality.

Structure

Below is the structure of the initial barebones app. Files with a * need to be edited/renamed.

├── LICENSE
├── README.md
├── app
│   ├── api
│   │   ├── index.js*             -- entry point to your api server, exposes all needed init functions
│   │   ├── routes                -- add api routes here
│   │   │   └── sample.js
│   │   └── test
│   │       └── index.js
│   ├── index.js                  -- main server side entry point which in turn intializes pages and api
│   └── pages
│       ├── index.js*             -- entry point to your pages server, exposes all needed init functions
│       ├── middleware
│       │   └── css.js*           -- serves the css files defined in ./client/css
│       ├── routes                -- add pages routes here
│       └── test                  -- tests related to the pages server
│           └── index.js*
├── client
│   ├── css                       -- style sheets served via ./middleware/css.js 
│   │   └── index.css*
│   ├── id.js*                    -- the entry point to the client side part of your feature
│   ├── init.js*                  -- init file that is used when app is run standalone
│   ├── lib 
│   ├── models
│   ├── test                      -- client side tests
│   │   ├── sample.js*
│   │   └── views
│   │       └── view-sample.js*
│   └── views                     -- add your Backbone views here
├── config
│   └── directories.js            -- exposes common directory paths for convenience
├── package.json*                 -- defines name, repo, dependencies, scripts and more related to this feature
├── templates
│   ├── index.hbs*                -- used to render your page when this feature is run standalone
│   └── partials
│       ├── head.hbs*             -- gets loaded into the head of your page
│       ├── main.hbs*             -- the main content of your feature
│       └── scripts-head-css.hbs* -- css scripts that should get loaded into the page head
├── appup-dev-config.js*          -- config used by npm start to configure this feature as a standalone app
└── zuul-test-config.js           -- config for the zuul test runner used by npm test-client

License

MIT

ses-barebones's People

Contributors

thlorenz avatar

Watchers

Joe Williams avatar

Forkers

mpuri

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.