/SCI

Website da SCI - Semana da Ciência e Inovação

Primary LanguageTypeScript

Project Setup Instructions

Check if postgresql is running

systemctl status postgresql

Setup postgres for prisma

sudo -iu postgres
psql
CREATE ROLE sci LOGIN;
\du
CREATE DATABASE sci WITH OWNER = sci;
GRANT ALL PRIVILEGES ON DATABASE sci TO sci;
ALTER ROLE sci WITH SUPERUSER CREATEDB;

After changing your .env file, type the following commands in your terminal

npx prisma generate
npx prisma db push
npx prisma studio