This is a template for creating a Kotlin micro service.
To setup your repo follow below steps
- Create your repo on GitHub using this repo as the template repo as mentioned Here
- Clone your new repo to your local setup
- At the root directory of your repository run
bash init.sh
- Enter your service name when script prompts.
That's all. Your repo is ready with most of the boiler plate code we use accross repos.
In servers
folder by default you get follwing modules along with their deployment scripts pre configured.
ktor
- for internal rest APIsktor-external
- for external rest APIssqs
- for asynchronous jobs.commons
module which hosts common logic for above 3 modulesclient
module if you ever need to expose your APIs or communicate with your sqs server from ktor servers.
You can delete the modules which you don't need right now, or you can keep them for your future usecase.