iot-air-quality-api

command module
v0.0.0-...-8e98fc1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: MIT Imports: 2 Imported by: 0

README

Go API for IOT Air Quality

see: https://github.com/julplee/iot-air-quality

A RESTful API to store IOT metrics with Go using gorilla/mux (API library) and Gorm (ORM for Go)

Installation & run

Download this project

To download the project you can simply execute go get github.com/julplee/iot-air-quality-api

Before running API server, you must configure the database with your own information in config.go

func GetConfig() *Config {
    return &Config{
        DB: &DBConfig{
            Dialect: "mysql",
            Username: "guest",
            Password: "guestpwd",
            Name: "iot-air-quality-db",
            Charset: "utf8"
        }
    }
}
Build & run
cd iot-air-quality-api
go build
./iot-air-quality-api

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
app

Jump to

Keyboard shortcuts

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