gdar463 / itis-workshop-2024

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

storage

Requires bun and postgresql

To install:

bun i
createdb file_storage
psql file_storage

if psql fails check if all the ports match

in psql

CREATE USER filestorage WITH CREATEDB ENCRYPTED PASSWORD '<password>';
GRANT ALL PRIVILEGES ON DATABASE file_storage TO filestorage;
GRANT ALL ON SCHEMA public TO filestorage;

and in the .env file change the DATABASE_URL entry to

"postgresql://filestorage:<password>@localhost:5432/file_storage?schema=public"

in this dir

bunx prisma migrate dev init

About

License:GNU General Public License v3.0


Languages

Language:Python 71.5%Language:TypeScript 28.5%