Team: Duvač, Vančo
- make sure that you have
node
installed - make sure you have
docker
installed
- Pull the repository using
git pull <repository_url>
- Enter the projects directory
cd fiit-mtaa-2024-server
- Run
npm install
- Make a copy of
.env.dev
file and rename it to.env
- Run
docker compose up db
(this will run a postgres DB in docker) - Make sure the DB is running using command
docker ps
(you should see container running with a name 'mtaa-2024-server-db-1') - Run
npx prisma migrate reset
(this will reset the DB, create all the tables, generate dummy data) - Run
npx prisma generate
(generates typescript types for DB model) - If you want to see the data in a DB, run
npx prisma studio
. This will open a window in browser where you can see all the tables and data inside the db.