Skip to content

basic link shortening service built with scalability in mind

License

Notifications You must be signed in to change notification settings

masonschafercodes/go-short

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-short

basic url shortener using go, postgres and redis.

This project consists of three microservices: id-service, redirection-service, and short-service.

id-service

This service is responsible for generating unique IDs. The main entry point is main.go in the cmd/server directory. The ID generation logic is implemented in handler.go in the pkg/api/ids directory.

redirection-service

This service handles redirection from short URLs to their original URLs. The main entry point is main.go in the cmd/server directory. The redirection logic is implemented in handler.go in the pkg/api/links directory.

short-service

This service creates short URLs. The main entry point is main.go in the cmd/server directory. The short URL creation logic is implemented in handler.go in the pkg/api/links directory. The database schema is defined in init.sql in the pkg/db directory.

Getting Started

To get started, clone the repository and install the dependencies for each service. Then, you can run each service locally.

Contributing

Contributions are welcome. Please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

About

basic link shortening service built with scalability in mind

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published