Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

0xProject/website

Repository files navigation

Website & 0x Portal DApp

This repository contains our website and 0x Portal DApp (over-the-counter exchange), facilitating trustless over-the-counter trading of Ethereum-based tokens using 0x protocol.

Contributing

We strongly recommend that the community help us make improvements and determine the future direction of the protocol. To report bugs within this package, please create an issue in this repository.

Please read our contribution guidelines before getting started.

Local Dev Setup

Requires Node version 6.9.5 or higher

Add the following to your /etc/hosts file:

127.0.0.1 0xproject.localhost

You will also need to have the aws CLI installed locally and your credentials set up.

Install dependencies:

yarn install

Initial setup

To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:

yarn build

Run dev server

yarn dev

Visit 0xproject.localhost:3572 in your browser.

Clean

yarn clean

Lint

yarn lint

Indexing docs

Before you can index the docs on Algolia, you need to set the admin API key environment variable:

# 0x Website frontend
export ALGOLIA_ADMIN_API_KEY={YOUR_ADMIN_API_KEY}
yarn index_docs

The above script will index all the docs found in the /mdx folder on Algolia. It's possible to pass in arguments that match the directory names to index only those document types, i.e. yarn index_docs --indexes 'tools,core-concepts' --environment development will index tools and core concepts for development.

Running the script updates some of the meta information about the files (relative paths to files and versions of the doc). For other types of information (i.e. title, subtitle, tags...) you will have to update it yourself.

Resources

Toolkit
Recommended Atom packages: