Guppy is a rails api that shortens URL. It exposes two endpoints that allows users to create short version of long links and fetch them.
- Ruby
2.7.1
- Rails
6.0.3
- Mongoid
7.0.5
(More info: mongoid docs) - Redis
4.1.4
(More info: redis )
- Install Redis
brew install redis
- Install Mongoid and MongoDB (community edition)
-
Install ruby dependencies
bundle install
-
Start redis in a different tab
redis-server
-
Start rails server in another tab
rails s
-
Server runs on
http://localhost:5000
.