apesdeprecated

A tiny application and HTTP API framework for Express.js.

Usage no npm install needed!

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

README

apes.js

END OF DEVELOPMENT NOTICE - This package has been discontinued

A tiny application and HTTP API framework for Express.js.

Supported implementations.

apes.js is written using async/await, which is available from Node 7.0.0 using --harmony_async-await flag.

Usage

Standalone application

To create a Node.js application which already takes care of logging, call the Application.execute and provide a main function.

The function will be called with a application object, which has a logger setup.

const apes = require('apes')

apes.Application.execute('confRoot', application => {
  // Do something here
})

HTTP Server

To create a fully working light-weight HTTP server, call HTTPServer.execute providing a root key in the package.json and a main function.

The function will be called with a server object, which has a express property to define routes.

const apes = require('apes')

apes.HTTPServer.execute('confRoot.http', server => {
  // Do something here - Core logic goes here, by adding routes to server.express
})

API Documentation

The API documentation can be found here.

Contributing to apes.js

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
  • Fork the project.
  • Start a feature/bugfix branch.
  • Commit and push until you are happy with your contribution.
  • Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.

Copyright

Copyright (C) 2016 and above Shogun mailto:shogun@cowtech.it.

Licensed under the MIT license, which can be found at https://choosealicense.com/licenses/mit.