Skip to content

chorangang/PHPBBDDD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reference

Repository

https://github.com/BaseMax/PHPTaskDDD / https://github.com/BaseMax/ForumPlatformDDD

Books https://amzn.asia/d/0alE4jpd

articles https://zenn.dev/yamachan0625/books/ddd-hands-on

baddy https://chatgpt.com/

API Routes

Authentication

  • POST api/register
  • POST api/login
  • POST api/logout

User

  • GET api/user -> indentify with token
  • GET api/users
  • PUT api/users/{id}
  • DELETE api/users/{id}

Treads

  • GET api/threads/{id}
  • GET api/threads
  • POST api/threads
  • PATCH api/threads/{id}
  • DELETE api/threads/{id}

Comments

  • GET api/threads/{thread_id}/comments
  • GET api/comments/{id}
  • POST api/comments
  • PATCH api/comments/{id}
  • DELETE api/comments/{id}

DatabaseSchema

Users

  • id: int (primary key)
  • name: varchar(255)
  • email: varchar(255)
  • password: varchar(255)
  • created_at: timestamp
  • updated_at: timestamp

Threads

  • id: int (primary key)
  • user_id: int (foreign key to Users table)
  • title: varchar(255)
  • body: text
  • created_at: timestamp
  • updated_at: timestamp

Comments

  • id: int (primary key)
  • user_id: int (foreign key to Users table)
  • thread_id: int (foreign key to Threads table)
  • body: text
  • upvotes: int
  • created_at: timestamp
  • updated_at: timestamp

About

learning DDD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published