Skip to content

msc7wc91w/url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL shortener

Consume API

curl --request POST \
--data '{
    "long_url": "https://www.google.com/",
    "user_id" : "123456789"
}' \
  http://localhost:9808/create-short-url

Install Redis

Docker

# Start
sudo docker run -d --name redis -p 6379:6379 redis:7.2-alpine

# Stop
sudo docker stop redis
# Install
brew install redis

# Start
brew services info redis

# Stop
brew services stop redis
# Install
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg

echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list

sudo apt-get update
sudo apt-get install redis

# Start
sudo service redis-server start

# Stop
sudo service redis-server stop

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages