Skip to content

This tool mesure running distance and record weight. Users can operate this tool by using WEB and LINE.

Notifications You must be signed in to change notification settings

x-rin/slim-load-recorder

Repository files navigation

slim-load-recorder

Build Status Maintainability Test Coverage

Overview

Work In Progress

Requirements

  • Serverless Framework

$ npm install -g serverless

  • AWS developer account

Usage

$ make setup
$ make lambda

After finising upload your app, post to your endpoint. ex) $ curl -X POST <YOUR ENDPOINT>:3000/loads -H 'Content-Type:application/json' -d '{"user_id": "bookun", "weight":71.8, "distance":5.2, "date": "2018-09-24 07:00:00", "start_at": "2018-09-23 00:00:00", "end_at":"2018-09-30 00:00:00"}'

Run in local (Optional)

  1. Install

$ npm install -g aws-sam-local

  1. Run in local
$ make setup
$ make local
  1. Access to your local endpoint

$ curl -X POST http://localhost:3000/loads -H 'Content-Type:application/json' -d '{"user_id": "bookun", "weight":71.8, "distance":5.2, "date": "2018-09-24 07:00:00", "start_at": "2018-09-23 00:00:00", "end_at":"2018-09-30 00:00:00"}'

About

This tool mesure running distance and record weight. Users can operate this tool by using WEB and LINE.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published