Gravity Development Docs

Technical details of Gravity's React.js framework.

Basic Information

What is Gravity?

Gravity is a blockchain powered full-stack web development framework that allows for the quick development of apps whose information can be stored and retrieved into the Jupiter blockchain maintained by Sigwo Technologies. This allows an effective means of encryption and backup for sensitive information.

The block under which Gravity is built on is the Jupiter Blockchain, a fork of the public NXT blockchain. Because of this, all nxt blockchain api calls work and perform the exact same functions in Jupiter. The NXT api guide (https://nxtwiki.org/wiki/The_Nxt_API) is thus a great resource to use when looking to develop new features in Gravity that depend on interactions with the Blockchain.

Stack and required plugin information

NodeJs was the framework chosen to write Gravity’s code and manage its backend. In order to power Gravity, a number of packages are required to run the app. The list of packages can be seen under the ‘packages.json’ file in the root directory. The main mentions of this packages are the ‘Express’ and ‘React’ packages. The first package is a backend framework that expands on Node’s features and is heavily used in all backend related code. The second package is a robust front-end framework that allows for faster development of better user experiences. The entirety of the Gravity front-end is being written as React Components.

In addition to React as the main front-end development tool, Bootstrap is used as a styling framework to quickly develop mobile-compatible pages.

To facilitate the quick development of the app, Gravity makes heavy use of both the Plop and Gulp node libraries, which specialize in generating templates and running tasks.

$ give me super-powers

Super-powers are granted randomly so please submit an issue if you're not happy with yours.

Once you're strong enough, save the world:

// Ain't no code for that yet, sorry
echo 'You got to trust me on this, I saved the world'