Skip to content

URL Shortner API written in Go with Redis for caching, MongoDB for persistence and Docker and docker-compose for Deployment.

Notifications You must be signed in to change notification settings

SarthakJha/Shortner

Repository files navigation

Shortner

URL shortner api written in Golang which uses Redis for caching and MongoDB for persitance.

Running with Docker requires no pre-requisite software installation except Docker!

To start with docker-compose:

  1. Clone the repository git clone https://github.com/SarthakJha/Shortner.git
  2. Run docker-compose build. It will build the go application create a docker image for it
  3. Run docker-compose up to start the application

Since multi-stage build has been implemented in the Dockerfile, final docker image that is run is super-lightwieght (<30 Mb)!

To Start the server locally:

  1. Clone the repository git clone https://github.com/SarthakJha/Shortner.git
  2. Run make build to compile the code
  3. To start the application run make run

Make sure to start your Redis and MongoDB instances

To build compile your code for other platforms run make cross_build and run the executable respectively by ./bin/<executable_name>

About

URL Shortner API written in Go with Redis for caching, MongoDB for persistence and Docker and docker-compose for Deployment.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published