Use features of the Spring Framework in NodeJS!
npm install spring-but-js

Use annotations and Spring Inversion of Control in NodeJS! Easily set up a REST endpoint like you would in a Spring Boot application.
Not actually affiliated with Spring.
npm install spring-but-js --save
`A demonstration
Below is a small project that makes use of SpringButJs, showcasing simple IoC and Web MVC mechanics to set up a web service.$3
` javascript
const SpringButJs = require('spring-but-js');
SpringButJs.scanComponents('components', process.argv);
`$3
` javascript
'@Service'
function MyService() { this.getHello = function() {
return 'Hello from MyService!';
}
}
`$3
` javascript
'@RestController'
'@RequestMapping("/hello")'
function MyController() { let myService;
'@Autowired'
this.setMyService = function(_myServive) {
myService = _myService;
}
'@RequestMapping("/")'
this.myOtherFunction = function(req, res) {
res.send(myService.getHello());
}
}
``
GET http://localhost/hello => 200: 'Hello from MyService!'
``