diff --git a/.github/build.yaml b/.github/build.yaml new file mode 100644 index 00000000..96f7b06a --- /dev/null +++ b/.github/build.yaml @@ -0,0 +1,25 @@ +name: Build on PR + +on: + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: "20" + + - name: Install Dependencies + run: npm install + + - name: Generate prisma client + run: cd packages/db && npx prisma generate && cd ../.. + + - name: Run Build + run: npm run build diff --git a/README.md b/README.md index 12804105..c8785b6c 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,36 @@ -- Clone the repo - -```jsx -git clone https://github.com/100xdevs-cohort-2/week-17-final-code -``` - -- npm install -- Run postgres either locally or on the cloud (neon.tech) - -```jsx -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`) \ No newline at end of file +# week-18 + +This is a simple monorepo built with [Turborepo](https://turborepo.org). + +## Apps + +- [user-app](apps/user-app): a simple wallet app +- [merchant-app](apps/merchant-app): a simple merchant app +- [bank-webhook](apps/bank-webhook): a simple webhook for bank transactions + +## Packages + +- [ui](packages/ui): a simple component library +- [store](packages/store): a simple state management library +- [db](packages/db): a simple database library + +## Development + +- `yarn dev`: starts all apps and packages in development mode +- `yarn build`: builds all apps and packages +- `yarn lint`: lints all apps and packages +- `yarn format`: formats all apps and packages + +## Deployment + +- `yarn deploy`: deploys all apps and packages to production + +## Learn more + +- [Turborepo documentation](https://turborepo.org/docs) +- [Next.js documentation](https://nextjs.org/docs) +- [Recoil documentation](https://recoiljs.org/docs/introduction/installation) + +## for education only + +lets learn