Coder Social home page Coder Social logo

aufbau-example-app's Introduction

Aufbau example app

A simple Aufbau app to show how to make app modules. You would include it in your Aufbau apps.json list with the following json.

{
  "displayName": "Example",
  "package": {
    "aufbau-example-app": "ajam/aufbau-example-app"
  },
  "indexPath": "index.html"
}

If our package lived on npm, you would use normal npm package syntax with the version number.

// ... 
"package": {
  "aufbau-example-app": "^1.0.0"
},
// ...

We've put an icon at icons/icon.png, so we don't have to specify one in our app definition. If we wanted to override this icon with one we package up with Aufbau, you would put that icon in the Aufbau icons/ folder and add a value to the app definition with the file name such as "icon": "new-icon.png".

Testing more complex apps

If you wanted to use CommonJs modules, you'll run into the problem that your app is hard to test on its own. The easiest way I've found is to run it from within Aufbau by linking the two packages locally. Inside your app repo run npm link. Inside the www/ folder in Aufbau, run: npm link <package-name>. The app will now appear in the www/node_modules/ folder. Add your info to the Aufbau apps.json and do npm start.

aufbau-example-app's People

Stargazers

EJ Fox avatar

Watchers

Michael Keller avatar James Cloos avatar  avatar

Forkers

rhynepiggott

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.