MLWebserviceGo

module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2020 License: GPL-3.0

README

MLWebserviceGo

Go PkgGoDev Coverage Status Go Report Card GitHub license

Example app for serving ML apps over a webservice.

Usage

Requirements
  1. Create a Firebase project.

    https://firebase.google.com/docs/web/setup

  2. Enable email authentication for project.

Configure

Rename .env.example to .env and replace [YOUR_PROJECT_ID] and [YOUR_FIREBASE_API_KEY] fields.

Run

In main folder, run go run github.com/mrtkp9993/MLWebservice/cmd.

Example Requests

Login request:

curl --location --request POST 'http://localhost:1323/login' \
--form 'email=EMAIL_ADDRESS' \
--form 'password=PASSWORD'

Predict request:

curl --location --request POST 'http://localhost:1323/predict' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'token=IDTOKEN' \
--data-urlencode 'x0=1' \
--data-urlencode 'x1=5'

TODO

  • Implement PMML & ONNX model
  • Add support & examples for more ML models
  • Make app structure more easily testable and write unit tests
  • Write documentation

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL