Skip to content

Fullstack URL Shortener, built with MongoDB, Golang GoFiber, and TypeScript Next.js

License

Notifications You must be signed in to change notification settings

dnwandana/url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener

Fullstack URL Shortener, built with MongoDB, Golang GoFiber, and TypeScript Next.js

Server Application

Read more at server/README.md

Client Application

Read more at client/README.md

Dockerize Application

Setup MongoDB TTL Indexes

  1. Login to your mongoDB cluster using mongoDB shell
  2. Add TTL Index at document field named expireAt
    db.<collectionName>.createIndex( { "expireAt": 1 }, { expireAfterSeconds: 0 } )
    Read more about Expire Documents at a Specific Clock Time at mongoDB Documentation

Builds, (re)creates, starts, and attaches to containers for a service

docker-compose up -d

Stops and removes containers, networks, volumes, and images created by up.

docker-compose down

Delete and removes containers, networks, volumes, and images created by up.

docker-compose down --rmi all -v

Useful Links

To learn more about this project, take a look at the following resources: