Review the documentation to learn more about setting up and deploying a Gateway.
-
A Unix OS
-
Docker and Docker Compose LTS
To get started with the new app nodes. Please read the Quick Start Guide. It goes over how to configure the environment and write filters for application specific needs.
By default, there is a default environment you can use located at .env.docker in the repository.
ARWEAVE_NODES=["http://lon-2.eu-west-1.arweave.net:1984","http://lon-4.eu-west-1.arweave.net:1984","http://lon-6.eu-west-1.arweave.net:1984"]
DATABASE_HOST=postgres
DATABASE_PORT=5432
DATABASE_USER=arweave
DATABASE_PASSWORD=arweave
DATABASE_NAME=arweave
ENVIRONMENT=public
PORT=3000
PARALLEL=1
ANS102=1
CACHING=1
CACHE_FOLDER=/gateway/cache
CACHE_OFFSET=0
MANIFEST=1
MANIFEST_PREFIX=amp-gw.online
TYPE=APP
FILTER=app.filter.json
START_HEIGHT=764180Make sure you copy this configuration to .env.
cp .env.dev .envYou should also update the ARWEAVE_NODES to valid
You can start the server with docker-compose.
# with npm
npm run docker:start
# with yarn
yarn docker:start
# with pure docker-compose
docker-compose up --build -dYou can spin down the docker-compose cluster with.
# with npm
npm run docker:stop
# with yarn
yarn docker:stop
# with pure docker-compose
docker-compose downYou can test if the server and the GraphQL queries are working properly by navigating to.
http://localhost:3000/graphqlThis webpage should look similar to.
https://arweave.dev/graphql