I use Yarn as my package manager. To get the dependencies installed, just do this in the root directory:
yarn install
yarn redwood dev
Your browser should open automatically to http://localhost:8910
to see the web app. Lambda functions run on http://localhost:8911
and are also proxied to http://localhost:8910/api/functions/*
.
I am using Prisma2, a modern DB toolkit to query, migrate and model your database.
Prisma2 is not ready for production at the moment.
To create a development database:
yarn redwood db up
This will read the schema definition in api/prisma/schema.prisma
and generate a sqlite database in api/prisma/dev.db
If you've made changes to the schema run yarn redwood db save
to generate a migration, and yarn redwood db up
to apply the migration/ generate a new ORM client.