0xProject / website

0x.org website

Home Page:https://0x.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

About

0x.org website

https://0x.org/


Languages

Language:TypeScript 97.7%Language:CSS 1.2%Language:JavaScript 0.6%Language:HTML 0.3%Language:SCSS 0.1%Language:Less 0.1%Language:Shell 0.0%