Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

fominok/otaservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP8266 Firmware storage service

Web-service to store firmwares for ESP8266 Arduino core, letting them pull fresh updates over-the-air.

Prerequisites

You will need Leiningen 2.0.0 or above installed.

Running

To start a web server for the application, run:

lein ring server-headless

Also you can build jar archive with:

lein uberjar

Then launch it with

java -jar target/otaservice-standalone.jar

Environment variables

  • DATABASE_URL : pretty self-explanatory (migrations use PostgreSQL syntax)
  • SECRET : required for Signed JWT token (changing it will invalidate all Auth tokens)

Example

DATABASE_URL=jdbc:postgresql://localhost/otaservice \
SECRET=soprivate \
lein ring server-headless

At localhost:3000/api there is Swagger-UI with all API methods.

TODO

  • UI
  • Manage DB connection lifecycle
  • tests??
  • forgot the last one