essenciary on master
Removed serverinteractive from … Merge branch 'master' of https:… (compare)
essenciary on master
Fix newline bug in unix bin/ sc… (compare)
essenciary on master
fix Genie.serve documentation t… (compare)
route("/ticket/all", TicketsController.allTickets)
route("/ticket/parentTypes", TicketTypesController.getParentTypes)
And totally there are three session files were generated.
@Quafadas I'm having exactly the same issue.
docker logs julia -f
[ Info: Precompiling DockerTest [c8399323-f68f-460c-82cc-f57bafebd7c8]
_____ _
| __|___ ___|_|___
| | | -_| | | -_|
|_____|___|_|_|_|___|
| Web: https://genieframework.com
| GitHub: https://github.com/genieframework/Genie.jl
| Docs: https://genieframework.github.io/Genie.jl/dev
| Gitter: https://gitter.im/essenciary/Genie.jl
| Twitter: https://twitter.com/GenieMVC
Genie v1.10.0
Active env: DEV
Ready!
Then no mention of the server port etc.
In my case I have it running through a docker-compose:
version: "3.8"
services:
julia:
container_name: genie
build:
context: ./genie
dockerfile: Dockerfile
ports:
- "8015:8015"
volumes:
- ./genie:/home/genie/app
environment:
PORT: 8015
Did you manage to find a solution?
Secure
but localhost not running over HTTPS - Firefox handled it but webkit browsers didn't
@Quafadas @MrBlenny the last push v1.11 also fixes the duplicated port for dockerfile - I’ll also run a test
Thankyou!
Hey guys,
I'm also thinking about using Genie.jl to write web apps, I'm going to read the docs but I have some questions still,
1) I'm a Software Engineer but I don't have a lot of experience with web dev. I know the basics of Django but that's it. I'm planning to build and monetize web apps for my own sake. So I need to choose a tech stack.
2) I don't even know how I will incorporate the front yet but I don't think I will be going with SPA right now (separating front end from back end) so my question is: is Genie fine for building web apps fully (ie. with templates). Btw I don't know anything about front end development.
3) Can we easily integrate Vue.JS or React.JS with Genie ?
4) If you know Python do you think it's worth it to go with Julia right now? I really love Julia and I prefer it to Python but I don't know I'd feel more safe with Django maybe. I'm an experienced Software Engineer so I don't have any issues learning any technology if it's worth it. Julia feels superior to Python but maybe Genie is less advanced than Django right now? If you have an opinion I'd love to hear it.
Cheers guys
@Akaban
1) you might want to register for https://stipple.app, this will give you a great tool at hand for fast development.
2) stipple is a Vue frontend for genie using the quasar zu library and other chart libraries.
3) see 2) Vue is already integrated
4) Julia has many benefits over Python (or any OOP Lang) like strong typing, multiple dispatch, also simple syntax. The eco system obviously is not as big, given Python is like 28 years old? But you might want to recognise that Julia had jumped up from place 47 to 23 in Tiode ranking in the last 12 months: https://www.tiobe.com/tiobe-index/
So it’s getting more and more adaption and the ecosystem will likely grow. For example I work with some good people on a client interface for the grakn.ai knowledge Graph database. https://github.com/Humans-of-Julia/GraknClient.jl
This can be a competitive and powerful backend then, also to be used within stipple.
So Python is not likely to vanish soon, but Julia is on a good way to become an alternative that makes development experience easier, faster and likely more fun.
Just my 2 cents, sharing how I look at it.
Hey,
stipple seems interesting but I'm definitely making my own front-end code, I need to pay the entry cost. This is something important !
Thanks for sharing your opinion, to be honest I really feel like Julia is more powerful than Python. In a sense that you can write less code and get more done.
I really want to get started with Julia but maybe I need to forget it for now and stick with Python. I tought about it last night and I think that most programs I will write at first will be glue-programs, with most of the complexity in the front-end, so I may not need the power of Julia right now.
So yeah that's what I'll do, and in 1 year I will think about it again and at that time I'll definitely be a contributor to all of these Julia initiatives !
So thanks everyone for all the job you are doing right now on Genie, it seems promising. I will keep an eye on the project and come back later :)
@AquaIndigo If you can share some code I'm definitely interested !
@FrankUrbach Of course, it seems like Genie does the job already. But I don't think that speed is important when you have less then 10 users on your back-end.
@AquaIndigo Thanks, very interesting. From what I've seen all of your API route implemented in the according controllers are doing pretty basic stuff, getting instances of a Model, deleting a model, adding a model, is automatically handled by django-rest-framework for example. Maybe we should think about a genie-rest-framework?
Btw AquaIndigo you use something like this here
Dict("code" => 0, "data" => vcat([Dict("type_name" => "全部")],
[Dict("type_name" => tp.typeName) for tp in parentTypes]
)) |> json
Which would be replaced by,
Dict("code" => 0, "data" => merge(Dict("type_name" => "xx"), Dict("type_name" => tp.typeName for tp in parentTypes))) |> json
{"a": 1, **{"b": 2, "c": 3}}
julia> using Genie
julia> Genie.Plugins.scaffold("GenieHelloPlugin")
[ Info: Generating project file
Generating project GenieHelloPlugin:
GenieHelloPlugin/Project.toml
GenieHelloPlugin/src/GenieHelloPlugin.jl
[ Info: Scaffolding file structure
ERROR: SystemError: unable to read directory .julia/packages/Genie/1Ew9d/files/new_app/app: No such file or directory
Stacktrace:
[1] walkdir(::String; topdown::Bool, follow_symlinks::Bool, onerror::typeof(throw)) at ./file.jl:0
[2] walkdir at ./file.jl:872 [inlined]
[3] recursive_copy(::String, ::String; only_hidden::Bool, force::Bool) at $HOME/.julia/packages/Genie/1Ew9d/src/Plugins.jl:28
[4] scaffold(::String, ::String; force::Bool) at $HOME/.julia/packages/Genie/1Ew9d/src/Plugins.jl:101
[5] scaffold at $HOME/.julia/packages/Genie/1Ew9d/src/Plugins.jl:88 [inlined] (repeats 2 times)
[6] top-level scope at REPL[2]:1
caused by [exception 1]
SystemError: unable to read directory .julia/packages/Genie/1Ew9d/files/new_app/app: No such file or directory
Stacktrace:
[1] readdir(::String; join::Bool, sort::Bool) at ./file.jl:810
[2] readdir at ./file.jl:805 [inlined]
[3] walkdir(::String; topdown::Bool, follow_symlinks::Bool, onerror::typeof(throw)) at ./file.jl:874
[4] walkdir at ./file.jl:872 [inlined]
[5] recursive_copy(::String, ::String; only_hidden::Bool, force::Bool) at $HOME/.julia/packages/Genie/1Ew9d/src/Plugins.jl:28
[6] scaffold(::String, ::String; force::Bool) at $HOME/.julia/packages/Genie/1Ew9d/src/Plugins.jl:101
[7] scaffold at $HOME/.julia/packages/Genie/1Ew9d/src/Plugins.jl:88 [inlined] (repeats 2 times)
[8] top-level scope at REPL[2]:1