In the dev container terminal, run ./bin/test.sh
In the dev container terminal, run ./bin/lint.sh
- Install the Apollo GraphQL extension:
apollographql.vscode-apollo
- Ensure the Django backend is running, by starting the "Run Mapped!" or "Django" launch configuration.
- Wait for the Django backend to start. There will be a notification in the bottom-left of VSCode that says "Your application running on port 8000 is available".
- Press
Cmd+Shift+P
to open the command palette, then find theApollo: Reload schema
command.
E.g. when adding a source to an org
mutation Mutation {e
createAirtableSource(data:{
apiKey: "...",
baseId:"...",
tableId:"...",
organisation: { set:5 }
}) {
id
}
}
If you are pulling a branch and the back-end isn't running, you probably need to run these commands:
poetry install
python manage.py migrate
cd nextjs
npm i
If the Bitwarden CLI isn't working for you, you can download the .env
files manually, using BitWarden web:
- Download the ".env" attachment from the "Mapped Development .env" item in BitWarden, and place it in this folder.
- Download the "nextjs.env" attachment from the same BitWarden item, and place it in the
nextjs
folder. Rename it to.env
.