Running with Docker requires no pre-requisite software installation except Docker!
- Clone the repository
git clone https://github.com/SarthakJha/Shortner.git
- Run
docker-compose build
. It will build the go application create a docker image for it - 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)!
- Clone the repository
git clone https://github.com/SarthakJha/Shortner.git
- Run
make build
to compile the code - 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>