Melonman0 / steem-engine-dex

New wave Steem DEX. OH YEAH!! [UNDER DEVELOPMENT]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

steem-engine-dex

The new generation is upon us.

Installation / Setup

To run locally, you will need to install Node.js. The easiest way to install Node.js is via the downloadable installers on the official Node website here. This is the only prerequisite.

Clone This Repo

Obvious, but essential. You need to clone or download this repo to be able to run it locally.

Install Aurelia CLI

The DEX is built using Aurelia and as such, the CLI is a requirement to properly run and bundle the application. To install it simply open up a Terminal window and run npm install aurelia-cli -g to globally install it.

Install the packages

By default, Node.js ships with NPM (Node Package Manager) to install Node modules. If you use a different package manager like Yarn, the process is largely the same. In-fact, Yarn is the recommended package manager for working with the DEX, but not a hard requirement.

npm install

Running The App

Provided everything went according to plan, to run the application locally in development mode simply open up your Terminal window and run from the project directory:

au run --watch

The application will then be viewable via: http://localhost:8081

Building The App For Production

It's time to ship it, to do a production build simply run the following command in your project directory in a Terminal window:

au build --env prod

This will build the application into a dist folder which is the built application. You then deploy this built directory to your chosen location.

Environment / Project Configuration

The application is broken down into three configuration files located within aurelia_project/environments these environment files are chosen based on the type of run or build command performed.

There is a aurelia_project/environments/base.ts file which the environment configurations all extend from. As you would expect, it is some shared configuration settings all config files inherit to prevent duplicate values.

The au build --env prod command above uses the aurelia_project/environments/prod.ts file and the au run --watch command above uses the aurelia_project/environments/dev.ts environment config.

The stage.ts environment file is NOT currently used

Unless you are developing on the main Steem Engine DEX or creating your own variant, you probably don't need to touch these values whatsoever.

About

New wave Steem DEX. OH YEAH!! [UNDER DEVELOPMENT]

License:MIT License


Languages

Language:TypeScript 67.1%Language:HTML 17.2%Language:CSS 11.5%Language:JavaScript 4.2%