Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/chandankumarshanbhag/storm
- Owner: chandankumarshanbhag
- License: mit
- Created: 2019-07-30T18:37:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-19T06:15:45.000Z (almost 4 years ago)
- Last Synced: 2023-10-19T18:13:18.189Z (about 1 year ago)
- Language: TypeScript
- Size: 464 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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(){
returnHello world
}
}```
### Creating Server
```jsimport 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
```