CariHati is a project that inspired by Tinder dating App Frontend repository
Make sure you have docker installed
If you don't have MongoDB Atlas Account create here
You have to get AWS access and secret key also S3 bucket config. You can check it in .env.example
.env
: This is main env file, you have to create the file base on.env.example
before run in production.env.local
: This file used for development and production, please create the file base on.env.local.example
before run
firebase private key
: generate your firebase private by follow this, then store private key intoFIREBASE_PRIVATE_KEY
,FIREBASE_PROJECT_ID
,FIREBASE_CLIENT_EMAIL
in .env file- Insert your email credentials in .env.local
Before started, you have to generate the prisma schema and push it into your database
# generate only
$ npm run prisma:generate
# generate and push schema to database
$ npm run prisma:push
In development, it need a few stack, so you have to run the stack before run the program in development. Make sure you have already installed Docker and Docker Compose
# run development stack
$ npm run dev-stack
# stop development stack
$ npm run dev-stack:stop
$ npm install
# for app structural data
$ npm run seed:structural
# for dummy data
$ npm run seed:dummy
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov