analog_api

command module
v0.0.0-...-01cb083 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 18 Imported by: 0

README

Analog API Backend

This is the webserver for the Analog Restful API written with Golang. The objective is to provide a robust & performant server connected to a PostgreSQL database to serve clients.

Getting started

You must have at least :

  • Golang installed
  • PostgreSQL running
  1. Defining required environment variable

First of all, please copy file .env-example, remove each comment and replace value with your own secrets.

  1. Run webserver (default port 8080)

Execute command go run ., you should have on STDOUT a URL with the running application.

  1. Display all cameras

curl http://localhost:8008/camera/, you should have a list of cameras (you must have added cameras in database)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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