Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main #411

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Main #411

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/build.yaml
Original file line number Diff line number Diff line change
@@ -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
56 changes: 36 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -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`)
# 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