MindsDB Go SDK
This project provides a simple REST API for managing Predictors using Go and MongoDB Atlas. It allows users to create and retrieve predictors from a MongoDB collection.
Key Features:
-
Create a Predictor: Add a new predictor by sending a
POST
request. -
Retrieve Predictors: Fetch all predictors with a
GET
request.
API Endpoints:
- POST /predictors: Add a new predictor to the database.
- GET /predictors: Retrieve all stored predictors.
Tech Stack:
- Go: For building the backend API.
- MongoDB Atlas: Used for storing predictor data.
- Gorilla Mux: For routing HTTP requests.
How it Works:
-
Clone the repository and install dependencies using
go mod tidy
. - Configure MongoDB: Update your MongoDB Atlas URI in the code.
-
Run the server with
go run main.go
. - Use tools like Postman or cURL to interact with the API.
This project is ideal for those looking to integrate MindsDB predictors into their Go applications using MongoDB as the database backend.
Top comments (0)