Code2Gether-Discord / Code2Gether-Discord-Bot

A Discord bot for the Code2Gether server
3 stars 1 forks source link

[User Story] As a developer, I want store my project and user data persistently (Discord-bot back-end) #20

Closed DonSagiv closed 3 years ago

DonSagiv commented 3 years ago

[Create/Update] Given a project/user (or its details) is created/updated on the Discord bot. When the project/user is being saved. Then serialize the data and save it onto an SQL-based database.

[Read] Given the details of a project/user is exists on an SQL-based database. When the project/user is being requested by the Discord bot. Then de-serialize the data on the database, and return return it to the bot.

The details of how this is done is not yet fully known. Tentatively, a Web-API attached to an SQLite database will be used. The front-end (bot) will make a WebAPI request to the back-end (SQLite) that's on a server. The server will likely be a Docker container.

nickmartin1ee7 commented 3 years ago

Business rules for database regarding project command defined at #31

nickmartin1ee7 commented 3 years ago

Given a project exists When a GET request is made to Project endpoint with a given Project Id Then return the serialized form of a project, which contains a collection of each Discord member's (ie. their Discord User snowflake)