- Go
- Docker
- MySQL
Before you begin, ensure you have the following installed on your machine:
you are a backend developer in a pet food startup. A new functionality will be implemented, we want to be able to easily manage the breeds of dogs and cats that are registered in the database in our back office,
you must implement a CRUD api to manage the breeds of pets. The breeds are stored in a CSV file located at ./breeds.csv.
the aim of this test is to demonstrate backend development skills using the Go programming language. The application implements a simple REST API for managing resources
you are free to take initiatives and make improvements to the codebase.
Have fun and good luck!
- create a new table in the core database to store the breeds of pets, to do this you must create a new migration file in the
database_actionsdirectory. - store the breeds of pets in the database (list of breeds are on
breeds.csv). - implement CRUD functionality for the breeds resource (GET, POST, PUT, DELETE).
- search functionality to filter breeds based on pet characteristics (weight and species).
- Fork the project repository
- Copy the
.env.examplefile to.env - Build the application
docker compose build - Run docker compose to start the application
docker compose up -d - Once the application is up and running, you can access the REST API at http://localhost:50010. Use tools like Postman or curl to interact with the API.
curl -v http://localhost:50010/healthto ensure your application is running.- send us the link to your repository with the api.