This project is a database which uses discord's messaging system, the database stores all it's data in partitions allowing the program to evade the discord message limit, I of course do not endorse stealing companies' storage for yourself, this is just a fun educational implementation. Currently this is a key-store database but it can example to much higher horizons with it's engine.
First change the .env-example
file to .env
, then inside it add the DISCORD_TOKEN
and DISCORD_DATA_CHANNEL
, the DISCORD_DATA_CHANNEL
is the id of the channel where all the data will be stored.
You can create a bot in the discord portal: Discord portal
To install dependencies:
bun install
To run:
bun run src/index.ts
Currently you can only access this through curl, but when running the program you can go to localhost:3000/swagger
to see the server routes, you can easily create a client with this due to it being just a key-store database and only having 4 routes.