Skip to content

Commit

Permalink
Added Total.js v4 and Total.js v5 framework.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Oct 21, 2024
1 parent 5106b0f commit 1d180f8
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 0 deletions.
15 changes: 15 additions & 0 deletions javascript/total4/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require('total4')

ROUTE('GET /', function() {
this.plain('Hello world!');
});

ROUTE('GET /user/{id}/', function(id) {
this.plain(id);
});

ROUTE('POST /user/', function() {
this.plain('');
});

F.http('release', { port: 3000, watcher: false });
3 changes: 3 additions & 0 deletions javascript/total4/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
framework:
website: totaljs.com
version: 0.0.97
5 changes: 5 additions & 0 deletions javascript/total4/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"dependencies": {
"total5": "~0.0.97"
}
}
15 changes: 15 additions & 0 deletions javascript/total5/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require('total5')

ROUTE('GET /', function($) {
$.text('Hello world!');
});

ROUTE('GET /user/{id}/', function($) {
$.text($.params.id);
});

ROUTE('POST /user/', function($) {
$.text('');
});

Total.run({ port: 3000, release: true, watcher: false });
3 changes: 3 additions & 0 deletions javascript/total5/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
framework:
website: totaljs.com
version: 0.0.6
5 changes: 5 additions & 0 deletions javascript/total5/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"dependencies": {
"total5": "~0.0.6"
}
}

0 comments on commit 1d180f8

Please sign in to comment.