ozone-core
v1.1.8
Published
``` LOCAL=1 # Disable TLS, Ignore block difficulty, Ignore network reachability ```
Downloads
14
Readme
LOCAL=1 # Disable TLS, Ignore block difficulty, Ignore network reachability
Nimiq Blockchain
Nimiq is a frictionless payment protocol for the web.
Resources
- Nimiq White Paper: High-level introduction of the Nimiq payment protocol.
- Nimiq Developer Reference: Details of the protocol architecture.
- Core API Documentation: Documentation of the Nimiq Core library API.
- Node.js Client Documentation: Usage and configuration documentation for the Nimiq Node.js Client.
- JSON-RPC Client Documentation: Usage instructions for the Nimiq JSON-RPC Client.
- Docker Documentation: Instuctions on setting up a Nimiq Node using Docker.
Demo
Check out our Testnet.
Prebuilt binaries
See our Downloads page for Linux and Windows binaries.
Quickstart
- Install Node.js v8.0.0 or higher.
- On Ubuntu and Debian, install
git
andbuild-essential
:sudo apt-get install -y git build-essential
.- On other Linux systems, install
git
,python2.7
,make
,gcc
andgcc-c++
. - For MacOS or Windows, check here for git and here for compilation tools.
- On other Linux systems, install
- Install
yarn
globally:sudo npm install -g yarn
. - Install
gulp
globally:yarn global add gulp
. - Clone this repository:
git clone https://github.com/nimiq-network/core
. - Build the project:
cd core && yarn && yarn build
. - Open
clients/browser/index.html
in your browser.
Web Developers
Simple Web Application on top of Nimiq
A good way to get started is to have a look at the most simple web application on top of the Nimiq Blockchain.
Getting Started
Follow the Quickstart guide or make use of our CDN:
<script src="https://cdn.nimiq.com/nimiq.js"></script>
Browser client
Open clients/browser/index.html
in your browser or include <script src="dist/nimiq.js"></script>
in your project.
Node.js client
To run a Node.js client you will need a publicly routable IP, Domain, and SSL Certificate (get a free certificate at letsencrypt.org). Start the client by running clients/nodejs/nimiq
with the respective configuration.
Test and Build
Run Testsuite
yarn test
runs browser and Node.js tests.yarn test-browser
runs the testsuite in your browser only.yarn test-node
runs the testsuite in Node.js only.
Run ESLint
yarn lint
runs the ESLint javascript linter.
Build
Executing yarn build
concatenates all sources into dist/{web,web-babel,web-crypto,node}.js
Build binary packages for Linux distributions
After completing the Quickstart, follow the steps below to build a Linux package. After the build process:
- the package will be located in the
dist/
directory, - once the package has been installed,
- a configuration file will be located in
/etc/nimiq/nimiq.conf
and - a
systemd
service will be avialable which you can manage withsystemctl start|stop|restart nimiq
.
- a configuration file will be located in
Debian/Ubuntu (deb package format)
- Make sure you have
dpkg
,jq
andfakeroot
installed (otherwise, install withapt
). - Run
yarn run build-deb
. - The deb package will be located in the
dist/
directory.
Note: creating deb packages only works on Debian-based distributions and has been tested extensively on Ubuntu and Debian.
Fedora/CentOS/RHEL (rpm package format)
- Make sure you have
rpm-build
installed (otherwise, install withyum
ordnf
). - Run
yarn run build-rpm
. - The rpm package will be located in the
dist/
directory.
Note: creating rpm packages only works on rpm-based distributions and has been tested extensively on Fedora only.
Contribute
If you'd like to contribute to the development of Nimiq please follow our Code of Conduct and Contributing Guidelines.
License
This project is under the Apache License 2.0.