## 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
- 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
- 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
You can find the Postman collection file here.