Last active
September 9, 2023 16:28
-
-
Save stnguyen90/8b6b80682d80cfec130a61e60e07d1f9 to your computer and use it in GitHub Desktop.
Start the Appwrite GraphQL Explorer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# To ensure the GraphQL docs load in the explorer, set the _APP_OPTIONS_ABUSE | |
# variable to disabled in your .env file. | |
# | |
# If you have a domain, run this script passing the endpoint like: | |
# ./start-appwrite-graphql-explorer.sh https://appwrite.example.com/v1 | |
# | |
# After you see "GraphQL Explorer listening on port 3000!", open your browser | |
# and browse to http://localhost:3000/ | |
APPWRITE_ENDPOINT=http://localhost/v1 | |
if [ ! -z "$1" ]; then | |
APPWRITE_ENDPOINT=$1 | |
fi | |
docker run --rm -p "3000:3000" -e "SERVER_URL=$APPWRITE_ENDPOINT/graphql" appwrite/altair:0.3.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment