A url shortener rails application, written on ruby-on-rails with postgres databse.
- ruby: 3.1.2
- rails: 7.0.4.1
-
Install all gems
bundle install
-
Start the database with docker-compose, or configure one to trust connections on port 5432
docker-compose up -d
-
Create the database
rails db:create
-
Use the seed to create your first user
rails db:seed
-
Run the application
rails server
You can access the app in localhost:3000
. If you have a user, just log in and create your short urls, given it a "name" and the url which
should be redirected when the app is accessed. After having some short url created, to use the shortener,
go to localhost:3000/<name_that_you_give>
, as well as if it is deployed, it should be domain/<name_of_the_short_url>
- Migrate authentication to Devise
- Create tests for models
- Create tests for controllers