Skip to content

Michaelpalacce/EventRequest

Repository files navigation

EventRequest

A highly customizable, async-first, speed-oriented backend server in NodeJs. The latest 3 LTS versions of node are targeted for support.

linux-12.x linux-14.x linux-16.x linux-18.x linux-20.x

windows-12.x windows-14.x windows-16.x windows-18.x windows-20.x

Codacy Badge

CodeFactor Codacy Badge DeepScan grade

GitHub last commit GitHub last commit (branch) GitHub issues Maintenance Known Vulnerabilities npm version npm npm

CHANGELOG || BENCHMARKS

Documentation:

Check out the docs section or go to: Documentation.

Contents

  • Getting Started - What this framework does and how does it operate?
  • Event Request - The main object passed through every middleware
  • Server - Server object used to attach to the http server
  • Routing - How routing works
  • Functionality
// Framework Singleton instance
const app = require( 'event_request' )();

// Add a new Route
app.get( '/', ( event ) => {
 event.send( '<h1>Hello World!</h1>' );
});

// Start Listening
app.listen( 80, () => {
 app.Loggur.log( 'Server started' );
});