drizzle-team / drizzle-team/drizzle-orm
[DOCS]: Get Started
- Dominant language
- TypeScript
- Stars
- 35.8k
- Forks
- 1.6k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
### Enhancement hasn't been filed before.
- [x] I have verified this enhancement I'm about to request hasn't been suggested before.
### Describe the enhancement you want to request
For the following: [https://orm.drizzle.team/docs/get-started/expo-new]( https://orm.drizzle.team/docs/get-started/expo-new)
The following are missing:
- [ ] Step 1: `npx create-expo-app --template blank-typescript` right now it says `npx **create expo-app** --template blank-typescript`
`-` is missing between `create expo`
- [ ] Step 4 - Create a table: `.db/schema.ts` it currently says `src/db/schema.ts`. `src/db` is normal practice, it won't work with the rest of the code
- [ ] Step 4c: Forgot to add this installation `npm i babel-plugin-inline-import`
- [ ] Step 6: include `npx expo customize metro.config.js`
- [ ] Step 7: include `npx expo customize babel.config.js`
- [ ] Step 8: Needs a better description. It didn't mean anything to me as an intro.
`npx drizzle-kit generate` generates migrations by reading drizzle.config.ts and making the 1) ./drizzle folder, 2) migration.js within the folder, and 3) SQL migration file.
- [ ] Step 9: Needs a better description too. Something like: `Update App.tsx with the following. If successful you will see John's email. `
Is `Step 4 - Connect Drizzle ORM to the database` and `Step 9 - Apply migrations and query your db` redundant?
- [ ] Step 10: `npx expo start`
- [ ] Re-number the Steps. There are multiple `Step 4` 's
Better to front all the commands first?
```
npx expo install expo-sqlite
npm i drizzle-orm
npm i -D drizzle-kit
npm i babel-plugin-inline-import
npx expo customize metro.config.js
npx expo customize babel.config.js
```
Please see [https://github.com/drizzle-team/drizzle-orm/issues/3112](https://github.com/drizzle-team/drizzle-orm/issues/3112)
--------------------
I made a [repo](https://github.com/martinsing/expo-drizzle-default/tree/main) to help explain things, though I'm not sure if I used Drizzle correctly. Use it however way you will. Thanks.
Contributor guide
Assessment
This issue has not been assessed yet.