start with ruby code

added rackup support, good. Also now use sinatra and all to get started.
This commit is contained in:
Pranshu Sharma 2025-05-31 11:49:29 +10:00
parent 40d8754378
commit deec2b8707
3 changed files with 22 additions and 0 deletions

View file

@ -1 +1,7 @@
gem 'erb'
gem 'rackup'
gem 'erb'
# For devlopment
gem 'pry'
gem 'pry-doc'

14
app.rb Normal file
View file

@ -0,0 +1,14 @@
require 'sinatra'
require 'erb'
$root = "/home/pranshu/Documents/proj/perc/test"
class Perc < Sinatra::Application
set :views, $root
get "/" do
erb :main
end
end

2
config.ru Normal file
View file

@ -0,0 +1,2 @@
require './app'
run Perc