Backend apps for SkinSight
https://documenter.getpostman.com/view/13203177/2s93m8xKRr
Note : Required NodeJS version >= 18.0.0
- Check npm version
npm -v
- Install dependencies
npm install
- Copy .env.example to .env
cp .env.example .env
- Connect to database
edit url on scheme.prisma
- Database migration
npx prisma db push
- Database seeder
npx prisma db seed
- Connect to google cloud bucket
edit file serviceaccountkey.json
edit projectId, bucketName on ModelController.json
- Development Mode
npm run serve
- Production Mode
On google cloud shell: gcloud run deploy skinsight-server-app --source .