Skip to content

microservice in C using c-framework-service framework and cdeps tool

Notifications You must be signed in to change notification settings

danidomi/service-cats-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

service-cats-example

Table of Contents

Introduction

This is an example of a microservice written in C, using the c-framework-service framework and the dependency manager cdeps.

Installation

Before getting started, make sure you have cdeps installed. You can follow the installation guide on their repository:

cdeps install

How to run

To run the microservice, you need a running database. If you don't have one, the easiest way to set it up is using Docker. You can bring up the database with the following command:

docker-compose up -d db

Once the database is up and running, you can compile and run the microservice:

./run.sh

How to test

To test the microservice, you can use curl or any other HTTP client. For example, you can make a request to the microservice using the following curl command:

curl http://localhost:8080/cats\?id\=1

About

microservice in C using c-framework-service framework and cdeps tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published