Update readme with TODOs
This commit is contained in:
parent
d50f0e058a
commit
4e4e1203ff
1 changed files with 25 additions and 10 deletions
31
README.md
31
README.md
|
|
@ -14,23 +14,38 @@ Local dev with docker-compose
|
||||||
|
|
||||||
Or for local dev of a single app
|
Or for local dev of a single app
|
||||||
|
|
||||||
* Create `link-stack/apps/link/.env.local` from Bitwarden `.env.local for link-stack/apps/link`
|
* Create `link-stack/.env` from Bitwarden `.env for root of link-stack`
|
||||||
* Create `link-stack/apps/metamigo-frontend/.metamigo.local.json` from Bitwarden `.metamigo.local.json for link-stack/apps/metamigo/frontend`
|
|
||||||
* Build locally for development:
|
* Build locally for development:
|
||||||
```
|
```
|
||||||
npm install
|
npm install
|
||||||
make dev-metamigo # this starts the containers
|
npm run docker:metamigo:dev:up # start supporting containers for metamigo
|
||||||
|
npm run build # compile the apps
|
||||||
npm run migrate # this migrates the db
|
npm run migrate # this migrates the db
|
||||||
npm run dev:metamigo # this runs metamigo frontend and api
|
npm run dev:metamigo # this runs metamigo frontend, api, and worker
|
||||||
```
|
```
|
||||||
|
|
||||||
# TODO
|
# TODO
|
||||||
|
|
||||||
- [ ] Delete old JWT config stuff
|
Notes from abel regarding metamigo. these are in priority order (high priority first)
|
||||||
- [ ] Consolidate config
|
|
||||||
- [ ] Complete react-admin upgrade.. make all the metamigo-frontend stuff work
|
- [ ] Do not upgrade: postgraphile, graphql and other postgres dependencies until postgrahile supports a newer grapqhl version
|
||||||
* https://marmelab.com/react-admin/Upgrade.html#no-more-prop-injection-in-page-components
|
* ref: https://github.com/graphile/postgraphile/issues/1583
|
||||||
|
- [ ] Fix the proxying from metamigo-frontend to metamigo-api, this broke during the next.js `pages/api` -> `app/api/*route.js` change.
|
||||||
|
* or consider removing the proxy and having the frontend talk directly to the backend, though this may be more work.
|
||||||
|
- [ ] Upgrade metamigo-frontend react-admin components
|
||||||
|
* this is the bulk of the real outstanding work, outside of breakages that happend during dep updates between Jun 14 - Aug (of which I'm only aware of the proxying issue, see previous)
|
||||||
|
* follow react-admin upgrade guide https://marmelab.com/react-admin/Upgrade.html
|
||||||
|
* in particular: https://marmelab.com/react-admin/Upgrade.html#no-more-prop-injection-in-page-components
|
||||||
|
* I started this in commit 49650795dff5249c89975d3c0b1cf12836304647
|
||||||
|
* so you can follow the same pattern in future commits to fix the signal, whatsapp and twilio pages
|
||||||
- [ ] Get metamigo-worker working
|
- [ ] Get metamigo-worker working
|
||||||
|
* the package.json entry points need to be fixed to be like metamigo-api
|
||||||
|
* the worker needs a main.ts file like metamigo-api that starts the worker (without the api) `await startWithout(["server"]);`
|
||||||
|
* while you're at it, I recomnmend moving all source files into a `src` to be consistent with the other metamigo projects
|
||||||
- [ ] Migrate off mui/styles
|
- [ ] Migrate off mui/styles
|
||||||
* https://mui.com/material-ui/migration/v5-style-changes/
|
* https://mui.com/material-ui/migration/v5-style-changes/
|
||||||
* the codemods might help us?
|
* the codemods might help us?
|
||||||
|
- [ ] Delete old JWT config options stuff in `packages/metamigo-config`
|
||||||
|
* the JWT is no longer used bdad5f551c536d751be87ecb8464d16c82e32699 and 24d52eef3d26ac5ee1294b949490920765fca96f
|
||||||
|
* so all of the config related to the JWT can be removed: signingkey (and b64 one), encryption key (and b64 one), audience
|
||||||
|
- [ ] Consolidate config.. this is basically done. The idea is to not need a config js file, everything can be populated from a root level .env file. This is already done, I have been developing like this for awhile, but I notice in your .env file on bitwarden you're still using the config file.
|
||||||
Loading…
Add table
Add a link
Reference in a new issue