todo
todo
- Yarn Workspaces and TypeScript
- NestJS, Prisma and PostgreSQL
- Expo and Next.js
First of all you need to duplicate .env.example into .env and populate it
Run docker compose -f docker-compose.dev.yml up -d
from mytable's root
When it's done you'll need to create the database. It can be done by:
Running yarn workspace @mytable/server prisma:db:push
to create only
Or running yarn workspace @mytable/server prisma:migrate:dev
to create and populate your database with seed data from apps/server/prisma/server/seed.ts
Run yarn
from mytable's root
When it's done you'll need to generate prisma assets by running yarn workspace @mytable/server prisma:generate
Now you'll need to create the database. It can be done by:
Running yarn workspace @mytable/server prisma:db:push
to create only
Or running yarn workspace @mytable/server prisma:migrate:dev
to create and populate your database with seed data from apps/server/prisma/server/seed.ts
Then run yarn server:dev
Now your server should be available under http://${HOST_ADDR}:${SERVER_PORT}
.
api:
http://${HOST_ADDR}:${SERVER_PORT}/api
docs:http://${HOST_ADDR}:${SERVER_PORT}/docs
As we use prisma, you can use Prisma Studio by running yarn workspace @mytable/server prisma:studio
. It should available under http://localhost:5555
or http://${HOST_ADDR}:5555
Run yarn
from mytable's root
When it's done run yarn client:android:dev
or yarn client:ios:dev
Now your emulator/simulator should be opened(if not already), expo app installed and your app initialized.
Run yarn
from mytable's root
When it's done run yarn client:next:dev
Now your web server should be available under http://${HOST_ADDR}:4000
You can change default port by modifying next:dev script under apps/client/package.json.
todo