Skip to content

alldiezzz/sleep_tracker

Repository files navigation

BREAK DOWN TASK

## Task:
    - ~ Setup Sleep Tracker Repo ~
    - Config New Repo
    - ~ create DB Diagram ~
    - ~ Create diagram Flow ~
    - ~ Add table to project (setup migration)~
    - Add Function
        -~ Api for record sleep ~
        -~ Api for record wakeup ~
        -~ Api for fetch sleep record ~
        -~ Api for follow ~
        -~ Api for unfollow ~
        -~ Api for fetch friend sleep record ~
        - Add unit test

README

How To Run

  • Use Ruby 3.3.5
  • Use Rails 8.0.1
  • Run bundle install
  • Run rails db:migrate
  • Run rails db:seed
  • update .env.example to .env and don't forget to update the DB credentials with your local creds
  • Run sidekiq
  • Run rails s

DB Schema

DB Schema

App Diagram Flow

App Diagram Flow

Functions

  • API for recording sleep
  • API for recording wakeup
  • API for fetching sleep records
  • API for follow
  • API for unfollow
  • API for fetching friend's sleep records

Postman Collection

You can find the Postman collection file here.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published