smilix / running

rest backend to track my running activities

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Superseded by running2.

Build

Install dependencies

You need the dependency manager dep ( https://github.com/golang/dep ).

cd server
dep ensure
cd ..

Build front end

You need node & npm.

Put the client somewhere

./build.sh client

Build server

./build.sh server
# or using docker: 
./build.sh server-docker

Configuration

Copy the build/config.template.toml to build/config.toml and edit the configuration.

Run

Just run the executable.

Testing requests

# list runs
curl -v --header "Content-Type:application/json" 'localhost:8080/runs?max=5'

# add new run
curl -vX POST --header "Content-Type:application/json" -d @new.json localhost:8080/runs

# update run
curl -vX PUT --header "Content-Type:application/json" -d @update.json localhost:8080/runs/1

# delete run
curl -vX DELETE --header "Content-Type:application/json" localhost:8080/runs/

About

rest backend to track my running activities

License:MIT License


Languages

Language:TypeScript 61.9%Language:Go 17.3%Language:HTML 13.9%Language:SCSS 3.6%Language:JavaScript 2.4%Language:Shell 1.0%