Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.
/ measurement-api Public archive

An API for logging humidity & temperature measurements supporting authentication via tokens.

Notifications You must be signed in to change notification settings

0x1115/measurement-api

Repository files navigation

Measurement API

An API for logging humidity & temperature measurements.

Documentation

Please refer to our Wiki for more information.

Installation

git clone https://github.com/0x1115/measurement-api.git && cd measurement-api
# If you use Measurement API in production, consider passing --no-dev option
composer install -vvv

Configuration

cp .env.example .env
vim .env

Migration & Seeding

Production

php artisan migrate:refresh && php artisan db:seed --class=ProductionSeeder

The seeding process should end up with the default user.

Development

php artisan migrate:refresh --seed

Serving

Make sure to configure the database before serving. The application is shipped with a default Caddyfile

caddy -log stdout -agree=true -root=/var/tmp -conf=./Caddyfile

and you're good to go !

Getting started

Please see the Getting started section for more information.

License

The API is open-sourced software powered by Lumen Framework which is licensed under the MIT license

About

An API for logging humidity & temperature measurements supporting authentication via tokens.

Resources

Stars

Watchers

Forks

Packages

No packages published