Skip to content

Get Comfortable with the Repo

Course: PayTM Part-2 - chapter 1

Our starter repo is this - https://github.com/100xdevs-cohort-2/week-17-final-code

The repo has 3 issues, we’ll be trying to fix them all today - https://github.com/100xdevs-cohort-2/week-17-final-code/issues

Let’s setup the repo locally before we proceed

  • Clone the repo
git clone https://github.com/100xdevs-cohort-2/week-17-final-code
  • npm install
  • Run postgres either locally or on the cloud (neon.tech)
docker run -e POSTGRES_PASSWORD=mysecretpassword -d -p 5432:5432 postgres
  • Copy over all .env.example files to .env
  • Update .env files everywhere with the right db url
  • Go to packages/db
    • npx prisma migrate dev
    • npx prisma db seed
  • Go to apps/user-app , run npm run dev
  • Try logging in using phone - 1111111111 , password - alice (See seed.ts)