Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions javascript/brahma-firelight/app.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { createApp } from 'brahma-firelight';

const app = createApp();


// GET
app.get('/', (req, res) => {
res.text('');
});

app.get('/user/:id', (req, res) => {
res.text(req.params.id)
})

// POST
app.post('/user', (req, res) => {
res.text('');
});

app.listen('0.0.0.0', 3000);
4 changes: 4 additions & 0 deletions javascript/brahma-firelight/cluster.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// using high speed native addon written on top of Tokio And Hyper.
// So no need cluster brahma-firelight runs multi-threaded by default 🔥

import "./app.ts";
6 changes: 6 additions & 0 deletions javascript/brahma-firelight/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
framework:
website: https://github.com/Shyam20001/rsjs
github: Shyam20001/rsjs
version: 1.5
engines:
- bun
6 changes: 6 additions & 0 deletions javascript/brahma-firelight/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"type": "module",
"dependencies": {
"brahma-firelight": "^1.5.2"
}
}
Loading