Skip to content

julplee/iot-air-quality-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages