feat(example): add example app and blog app with demos
This commit is contained in:
1 parent
28e6bc3cf2
commit
7d2312b94b
13 files changed
+234
No files matched your search
Executable
+6
@@ -0,0 +1,6 @@
|
||||
require_relative '../app'
|
||||
|
||||
server = Prism::Server.new(Blog, port: (ARGV[0] || 3000).to_i).start
|
||||
puts "listening on #{server.url}"
|
||||
trap('INT') { server.stop; exit }
|
||||
sleep
|
||||
Reference in new issue
Block a user