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+Pto open the command palette, then find theApollo: Reload schemacommand.
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 installpython manage.py migratecd nextjs
npm ipg_dump -x -O {pg_connection_string} > meep.psql
docker compose down -v
docker compose up db
psql postgres://postgres:password@127.0.0.1:53333/postgres < meep.psqlIf 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
nextjsfolder. Rename it to.env.