Giter VIP home page Giter VIP logo

niji-old's Introduction

niji

YAML theme repo for use with zenbu.

Usage

You may (and probably should) substitute npm with yarn.

  • To install dependencies: npm install && bower install
  • To start serving for production: npm start (be sure to build first!)
  • To run the dev servers: npm run dev
    • The main server is at localhost:3000, which proxies everything but /api to webpack-dev-server at localhost:8080
  • To test: npm test, npm run test:watch, or npm run test:browser
  • To build deduplicated, minified html/scripts into dist/: npm run build

The webpack configuration is generated based on npm_lifecycle_event, so running the scripts from package.json directly will not yield the correct results.

App conventions

All files are in app/ unless otherwise noted.

  • All React components are pure functional components with Redux.
  • The entry point is main.coffee, which also sets up hot reloading.
  • The root component used for routing, etc. can be found at Root.coffee.
  • Each subcomponent gets a folder in components/ with the following structure:
    • index.coffee: Exports a Redux-connected component.
    • style.l.styl: Locally scoped styles for the component.
  • The store can be found at store.coffee, and the root reducer at reducers/index.coffee.
  • Each reducer gets a file in reducers/, and is automatically imported. It manages the state sub-tree matching its filename, sans extension.
  • Actions are created and handled using redux-act.
    • Actions can be found at actions/index.coffee.
    • Async actions can be found at actions/async.coffee.
  • Tests are considered any file within the app tree ending with .spec.*, where * is any extension (e.g. coffee). These are all automatically picked up by npm test.

Server conventions

Probably will be GraphQL, TBD.

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.