-
A input field
-
A button
-
When you click on button, your url will be shortned!
Easy, isn't?
- Ruby 2.5.0
- Sinatra 2.0.1
- Postgres ๐
-
Run
gem install bundle
andbundle install
on terminal -
Rename the
.env.example
file to.env.development
-
Fill the variables started with
DATA
with your database values- The variable
BASE_URL=
is the url base to your app, if you'll run locally, the value will belocalhost:4567
- The variable
-
Run
bundle exec rake db:create && bundle exec rake db:migrate
-
And then, run
ruby application.rb
and visithttp://localhost:4567