This is a RESTful API built using Golang, Fiber, Postgresql, RabbitMQ, Async and Reflex. This API provides a simple implementation to scheduling jobs in golang.
Setup
Clone the repository to your local machine.
git clone https://github.com/dipo0x/url-shortener
Ensure that you have Golang, Postgresql and RabbitMQ installed on your machine. Alternatively, you can use their cloud service.
Navigate to the root directory of the project in a terminal.
cd url-shortener
Run the following command to install the necessary dependencies
go install
After that, run this command to create a .env file with which you can get started with.
bash build/scripts/setup.sh
Running Server
Locally
Run the following command to start the server and start up rabbitmq instance: