Coder Social home page Coder Social logo

joshbenaron / vartex Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arweaveteam/vartex

0.0 0.0 0.0 3.6 MB

Vartex is a vortex into the permaweb -- the decentralised web on top of the Arweave protocol.

License: MIT License

Shell 0.16% JavaScript 8.11% TypeScript 90.87% Dockerfile 0.11% Nix 0.76%

vartex's Introduction

Vartex

License

Vartex is a vortex into the permaweb -- the decentralised web on top of the Arweave protocol. Vartex nodes offer services to permaweb users -- serving data and query requests to desktop and mobile browsers.

The service builds upon Amplify, a fork of the original Arweave.net gateway service.

Current Release: BETA-1

We are in beta! Please give Vartex a spin and let us know what you think via the Arweave Developer Discord.

  • ๐Ÿ‘ป If you encounter issues, please open a ticket here and we will try to respond ASAP!
  • ๐ŸŽ If you feel this code needs improvement, please open a PR.
  • ๐Ÿ™ If a feature you'd like to see is missing, open a feature request ticket and let's discuss it!

Running with Docker Compose

The easiest way to start with your own gateway is by running the service with docker-compose.

Requirements

  • Docker
  • Docker Compose

Running

Clone this repo with:

git clone https://github.com/ArweaveTeam/gateway-cassandra.git

Go into the directory:

cd gateway-cassandra

Copy the .env.example to .env, and change the ARWEAVE_NODES variable to the IP addresses of your Arweave node.

cp .env.example .env

Run the docker-compose command:

docker-compose up -d

Wait a couple of minutes and then you can see your gateway running on:

http://localhost:3000/graphql

Run without Docker

You can also run the gateway without using Docker.

Requirements

  • NodeJS v16.4.0 or higher
  • Cassandra v3.11.10 or higher

Environment

By default, there is a default environment you can use located at .env.example in the repository.

Make sure you copy this configuration to .env.

cp .env.example .env

Compilation

Start Cassandra and then run the following command to compile the gateway.

# with npm
npm run start

# with yarn
yarn start

While developing you can specify a range of blocks you wish to sync, the range starts from the most recent known block from the cached hash_list down X amount of blocks specified with DEVELOPMENT_SYNC_LENGTH.

# for cached block height 1,000,000 would only sync down to 999,900
DEVELOPMENT_SYNC_LENGTH=100

Endpoints

You can test if the server and the GraphQL queries are working properly by navigating to.

http://localhost:3000/graphql

This webpage should look similar to.

https://arweave.dev/graphql

vartex's People

Contributors

hlolli avatar arweave-kyle avatar theloneronin avatar cedriking avatar joshbenaron avatar fabianriewe avatar alexander-morris avatar tudorfil9 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.