Skip to content

Commit

Permalink
MISC - link sketches for front and start describing the API
Browse files Browse the repository at this point in the history
  • Loading branch information
Fr33maan committed Jan 20, 2020
1 parent 2a51263 commit c56474e
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 46 deletions.
82 changes: 42 additions & 40 deletions BACK.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,67 +5,69 @@ postgres

## Database structure\
### theme
name
slug
message_id
- name
- slug
- message_id

### thread
theme_id NULL
message_id NULL
quote_id NULL
name
- theme_id NULL
- message_id NULL
- quote_id NULL
- name

### message
thread_id
- thread_id

### theme_rating
theme_id
- theme_id

### thread_rating
thread_id
- thread_id

### message_rating
message_id
user_id
sincerity - INTEGER (0 to 100)
hypocrysy - INTEGER (0 to 100)
calmness
wiseness
correctly_sourced
argumentary quality
anger
manipulative
truth
listening
empathetic
objective
listening
- message_id
- user_id

- sincerity / hypocrysy
- fool / wise
- unsourced / sourced
- lack of arguments / lot of arguments
- kindness / agressivness
- calm / anger
- manipulative / intellectual honesty
- lie / truth
- facts / thoughts
- intelligible / misconstructed

- empathetic
- objective
- listening

### message_source
**Message sources in order to increase 'correctly_sourced' rating**
message_id
url
- message_id
- url

### quote
**Pick a sentence and open a thread**
quote_content
message_id
- quote_content
- message_id

### source_rating
fiability - INTEGER (0 to 100)
accuracy - INTEGER (0 to 100)
known_source - INTEGER (0 to 100)
- fiability - INTEGER (0 to 100)
- accuracy - INTEGER (0 to 100)
- known_source - INTEGER (0 to 100)

### user
username
password
role
- username
- password
- role

## Modules
auth
rest CRUD API for above tables with role access
roles ( admin, mod, user )
- auth
- rest CRUD API for above tables with role access
- roles ( admin, mod, user )

## CI / CD
integration tests (superagent)
functionnal tests of API
- integration tests (superagent)
- functionnal tests of API
42 changes: 36 additions & 6 deletions FRONT.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,48 @@
## Technology
React

## Design
https://www.figma.com/file/AEBM97yzW6IbdET6MD3YoI/Untitled?node-id=0%3A1

## Goals
The platform should help us to comminicate in a constructive, honest and positive way.
We must be able to create thread (posts), to answer with messages,

## Userland
createPost
createMessage
- can answer to post AND any message
- when answering to a message, it creates a new post in the database with ratings etc...
###### createUser
###### getCategories
###### getThreads/categoryId
###### getMessages/threadId
###### createThread
- categoryId
- title
- message

###### createSource
- threadId

###### createMessage
- can answer to thread AND any message
- when answering to a message, it creates a new thread in the database with ratings etc...
- threadId
- sources url[]

###### createSource
- add a source to a thread / message

###### getSources/threadId

###### createAnnotation
Select a sentence in a message and create a new thread from it
- messageId
- content


###### createRating
- for messages, posts, source

createRating
- for messages, posts, source
addSource
getSources

## ModLand
flagUser

0 comments on commit c56474e

Please sign in to comment.