<div>Chore server (as is name says) is the server side of chore app project.
This project is a ruby on rails api project and use postgresql as Database. and use several models and controller to handle the logic flow
- Chore model is the model that record chores in the that database. the chore model contain several properties such as:
- Name: hold the chore name
- description: property that hold chore description and also can contain specific detail about the chore
- penalty: property that hold the penalty set for the chore if this chore wasn't done on time
- reward: property that hold chore reward for a given special chore when is done
The penalty and reward can be point or currency depending group agreement.
Chore controller handle all chores traffic flow. it's a restful api but also contain custom route
All chores is creating in the group therefore, group has one to many relationship to Chores Also, a group has many participant which mean group has one to many relationship to User.
Contributors: Yveslym, ShennyO
<<<<<<< HEAD
Get Chores
-
System dependencies
-
we use Device gem for authentication
-
simple_token_authentication to generate user_token
-
Jbuilder to create JSON view
-
Configuration
-
Database creation:
Database as been created into Postgresql and contain 4 table:
- user table: hold all user properties
- chore table: hold all chores properties
- group table: hold all groups properties
- request table: hold friend, chore and group request
Group model as a foreign key to user table and chore table, also as a one to many relationship to chore model
Chore model as a one to many relationship to both user and group.
- Database initialization
b47fc225591bddc2aab2862d150572ddc92293a0
Required parameters:
- body:
- request_id:
- chore_id:
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
The server as been deploy on heroku: https://chores-server.herokuapp.com/ as based url
NB: this is a api and doesn't contain any web page yet
- ...
b47fc225591bddc2aab2862d150572ddc92293a0