Skip to content

Repository files navigation

Hormone Data API

Rails API for user-authenticated hormone studies and submissions.

Run with Docker

Requirements

  • Docker Desktop (or Docker Engine + Compose v2)

Start API

docker compose up --build

API will be available at http://localhost:3000.

Stop API

docker compose down

Reset local DB volume (optional)

docker compose down -v

Auth Flow (API)

Sign up

curl -X POST http://localhost:3000/signup \
  -H "Content-Type: application/json" \
  -d '{"user":{"email":"user@example.com","password":"password123","password_confirmation":"password123"}}'

Log in

curl -X POST http://localhost:3000/login \
  -H "Content-Type: application/json" \
  -d '{"email":"user@example.com","password":"password123"}'

Profile

curl http://localhost:3000/profile \
  -H "Authorization: Bearer <token>"

About

An interface for entering, viewing, curating, collecting, and sharing data on hormones and the effect lifestyle choices have on them.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages