We use Yarn as our package manager. To get the dependencies installed, just do this in the root directory:
yarn install
- Install Sanity CLI
yarn global add @sanity/cli
- Create a Sanity account then log into Sanity
sanity login
- Create a Sanity movie project
sanity init --template moviedb
- Use Sanity sample movie dataset
sanity dataset import https://public.sanity.io/moviesdb-2018-03-06.tar.gz
-
Create a
.env
file in the root. -
Add
SENTRY_PROJECT_ID
(found in/sanity.json
) to.env
. Your.env
should look like:
SENTRY_PROJECT_ID=nfbwci30
- Start your Sentry dev server.
sanity start
- Start your Redwood dev server.
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/*
.