Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chandankumarshanbhag/storm

stormjs is a webframework for nodejs
https://github.com/chandankumarshanbhag/storm

Last synced: 29 days ago
JSON representation

stormjs is a webframework for nodejs

Awesome Lists containing this project

README

        

# storm
storm is a webframework for nodejs

![Storm Logo](https://i.ibb.co/YfGNLBv/storm.png)

### Creating a route

```js

import { Route,requestMethods } from "../../../lib/index";
import React from "react";

export default class Index extends Route {
constructor(){
super();
this.index = this.index.bind(this);
}
@requestMethods("get","post")
index(){
return

Hello world


}
}

```

### Creating Server
```js

import Storm,{ stormApp } from "./../lib/index"
import IndexRoute from "./src/Index/Index"
import TestRoute from "./src/Test/Test"

@stormApp({
port: 3000,
indexRoute: IndexRoute,
routes: [
TestRoute,
//add more routes here
]
})
class App extends Storm { }

new App().start()

```

### Run
```
ts-node
```