Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Actually you don't. Really. I build this framework strictly in educational purpose and now I'm trying to use it on my projects. It's updated almost every day. Young and unstable. It's even not 1.x! Every day I write tests and add new features. After testing a lot of frameworks on NodeJS for my needs (all of them are using MV) I decided to write my own.
I advise you to use some of the mature frameworks (HAPI, Meteor etc).
If you decided to poke this stuff you can drop me a line
Framework is written on ES6 and with help of babel compiled to ES5. So it supports node >= 4.1.2.
It uses DAO architecture and DI for its carcass.
Using Express server routing it get all request and processes to Dispatcher. Dispatcher parses url into segments and apllies call to Controller's method.
Example:
GET /messages // MessagesController.load()
GET /messages/1 // MessagesController.get(id)
POST /messages // MessagesController.create(payload)
Also you can divide controllers by Modules. Engine will parse your url and process like this:
GET /todo/tasks // Todo/TasksController.load()
They will arrive in method in params argument
GET /messages/1/?limit=100 // MessagesController.get(id, params)
Engine will search for controllers in controllers folder or you can create modules. In that case you have to place in module folder. More about Controllers
/app
controllers
IndexController.js
/app
modules
Todo
controllers
TasksController.js
You can provide your own config that will replace default
module.exports = {
path: './',
host: 'localhost', // API host to run
port: 3000, // API port
debug: true,
// Database section
// Available mappers: MySQL (MariaDB) / Redis / MongoDB
db :{
mysql: { // Name of the connection
// Connection details in Databases section
}
}
}
To enable MySQL support you need to provide in config connection information:
db: {
...
mysql: { // Name of the connection
host: '127.0.0.1', // by default
port: 3306, // by default
username: 'root', // by default
password: 'myPassword1', // by default - using password: NO
database: 'MyDatabase' // no defaults
}
}
db: {
...
myRedis: { // Name of the connection
host: '127.0.0.1', // by default
port: 6379, // by default
username: 'root', // by default no user
password: 'myPassword1' // by default - using password: NO
}
}
db: {
...
myMongo: { // Name of the connection
host: '127.0.0.1', // by default
port: 27017, // by default
username: 'root', // by default no user
password: 'myPassword1' // by default - using password: NO
}
}
FAQs
Airborne RESTful API framework
The npm package airborne receives a total of 3 weekly downloads. As such, airborne popularity was classified as not popular.
We found that airborne demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.