grsmv / clio Goto Github PK
View Code? Open in Web Editor NEWLittle and fast web-development library for Golang
Home Page: http://grsmv.com/clio
Little and fast web-development library for Golang
Home Page: http://grsmv.com/clio
In some cases after *.go or *.template file update
app panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x2472e]
goroutine 32 [running]:
github.com/cliohq/clio/cli.(*Server).RelaunchProcess(0xc200000b78, 0xc200122a70, 0xc200000e38, 0x0, 0x0, ...)
/Users/whoami/go/src/github.com/cliohq/clio/cli/application.go:55 +0xce
reflect.Value.call(0x252c60, 0x261f70, 0x130, 0x2c5500, 0x4, ...)
/usr/local/go/src/pkg/reflect/value.go:474 +0xe9f
reflect.Value.Call(0x252c60, 0x261f70, 0x130, 0x5ebf00, 0x3, ...)
/usr/local/go/src/pkg/reflect/value.go:345 +0x9b
net/rpc.(*service).call(0xc2000fb780, 0xc2000fb380, 0xc2000007a8, 0xc2000d6580, 0xc2001123e0, ...)
/usr/local/go/src/pkg/net/rpc/server.go:379 +0x12b
created by net/rpc.(*Server).ServeCodec
/usr/local/go/src/pkg/net/rpc/server.go:450 +0x37c
library % ps aux | grep application
user 21255 0.0 0.1 145313104 4728 s002 S 7:01PM 0:00.03 ./application ./application
clio g s admin/users
Clio should have possibility to create an app skeleton from command line with, for example, clio create new_app
command
Sending error reports to a named serviced. What need to be done:
Requirements:
routes.Resources ()
to application.go during generation of a new scaffold / routeWs ("path/of/channel")
App Settings should be accessible from all Core package
Clio should have possibility to manage (run and watch) helper processes, defined in config/procfile
Make possible to install dependencies, declared in config/dependencies file with go get
This linked with #43
New design and markup for root page in freshly created application.
On first application start up:
2013/09/26 15:46:30 Building application binary
app error occured: exec: "./application": stat ./application: no such file or directory
Looks unuseful:
func ControllerRoutes () {
Get ("/books", Books )
Get ("/books/", Book )
Post ("/books", BooksCreate)
Put ("/books/", BookUpdate )
Delete ("/books", BooksRemove)
Delete ("/books/*", BookRemove )
}
I think it will be better something like that:
func ControllerRoutes () {
Resourse ("books", Books )
}
Strange bug according local packages appears on newest versions of Golang.
So we need to make Clio play with GOPATH nicely.
./routes
should be changed to application/routes
)For example using send(route, message string)
API call
Clio should have JSONGet ()
method, which receives same arguments, as Get ()
methods but give away content in application/json format without any layouts.
Add Redirect (to string)
function to core API
2013/10/02 15:32:56 open /Users/sergey/Desktop/library/tmp/pids/clio.pid: no such file or directory
Proxy for reloading back binary without missing connections
clio run
2013/08/12 22:40:38 Building application binary
app error occured: exec: "./application": stat ./application: no such file or directory
Not all messages of application
process shows up in clio run
mode. Thats not cool. Also there's no messages on application recompile and restart.
go run application.go
2013/08/12 22:38:38 open /var/folders/vp/vjytw_0x5937wrfqvxshy33h0000gp/T/go-build163112427/command-line-arguments/_obj/exe/tmp/pids/clio.pid: no such file or directory
exit status 1
/books/:id/download/:type
=> map[string]string {"id": "42", "type": "zip"}
# robotstxt.org
User-agent: *
...but should be turned on in application.go
Reason why we need this - exceed info during application's tests running.
Clio should have possibility to swap code without restarting main server. Main way to do this - is to use proxy.
Also swapping process should recognise unsuccessful code building and use previous version of app binary and show compile error message.
Steps for reproduce:
What the problem?
it can help us and users. in future we can create change logs
We need to detect unsuccessful compilation, and not hot-swap in this case.
CSRF attacks
Filter inputs
XSS attacks
SQL injection
Password storage
Encrypt and decrypt data
clio run
clio run
clio run
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.