This can switch NodeJS version to v18.16.0(You should first have NodeJS v18.16.0 installed)
nvm use
This will install all dependencies for the app
pnpm install:all
This will have postgres and adminer running for the backend
docker-compose up -d
cd backend
pnpm setup
cd backend
pnpm generate
pnpm migrate
cd ..
pnpm backend
This will run apollo graphql playground at port 5000
you can then use adminer at port 8080, or run
cd backend
pnpm studio
to open up prisma studio to check whether the data is properly saved
cd backend
pnpm initData
This will add default data to the database
kill the port being stucked : sudo kill -9 $(sudo lsof -t -i:port)
. If you want to kill port 8080, type : sudo kill -9 $(sudo lsof -t -i:8080)
cd frontend
pnpm compile
cd ..
pnpm frontend
This will run react app at port 3000