Skip to content

Commit 33628f6

Browse files
AbrJAwaghanza
andauthored
Adding Julia Oxygen (the-benchmarker#7286)
* Adding Julia Oxygen * Deleting Manifest * Deleting compat in Project * Running in multithread mode * Using render functions * Changing the version to 1.5 Co-authored-by: Marwan Rabbâa <[email protected]> --------- Co-authored-by: Marwan Rabbâa <[email protected]>
1 parent a505123 commit 33628f6

File tree

5 files changed

+32
-1
lines changed

5 files changed

+32
-1
lines changed

julia/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ language:
66
- Project.toml
77
engines:
88
default:
9-
command: julia server.jl
9+
command: julia -t auto server.jl
1010

1111
framework:
1212
engines:

julia/oxygen/Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[deps]
2+
Oxygen = "df9a0d86-3283-4920-82dc-4555fc0d1d8b"
3+
HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3"

julia/oxygen/config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
framework:
2+
github: OxygenFramework/Oxygen.jl
3+
version: 1.5

julia/oxygen/deps.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
using Pkg
2+
3+
Pkg.activate(pwd())
4+
Pkg.Registry.add(RegistrySpec(url = "https://github.com/JuliaRegistries/General"))
5+
Pkg.update()
6+
Pkg.resolve()

julia/oxygen/server.jl

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using Pkg
2+
Pkg.activate(pwd())
3+
4+
using Oxygen
5+
using HTTP
6+
7+
@get "/" function()
8+
return text("")
9+
end
10+
11+
@get "/user/{id}" function(request::HTTP.Request, id::String)
12+
return text(id)
13+
end
14+
15+
@post "/user" function ()
16+
return text("")
17+
end
18+
19+
serveparallel(host = "0.0.0.0", port = 3000, docs = false, metrics = false, access_log = nothing)

0 commit comments

Comments
 (0)