Skip to content

(Complete) A front-end interface to monitor and control my backend, automated, cryptocurrency trading bot.

Notifications You must be signed in to change notification settings

WilliamRADFunk/cryptobot-interface

Repository files navigation

cryptobot-interface

A front-end interface to monitor and control my backend, automated, cryptocurrency trading bot.


Classes


Developer Adaptations

Depending on where you launch this application. It will be necessary in most cases to adapt certain files to be hosted live.

The first change is in the package.json script command for npm run build

Change the /applications/cryptobot-interface/ within ng build --prod --base-href=/applications/cryptobot-interface/ to match the path where your build files will reside on the server in relation to the root domain.

As this application uses Angular's awesome routing technology, and in my case the hosting server is Apache, it is necessary to include an .htaccess file at the hosted level. This redirects all url's back to the index.html that Angular builds. In order to bookmark extensions and have them work, they need to be properly redirected.

Inside the /src/assets/configs/ folder you will see my .htaccess file. Just like in the npm script command, change /applications/cryptobot-interface/ to match the path where your build files will reside on the server in relation to the root domain.

Don't worry about moving this file. The build command will do that for you at the end of the build process. Simply upload all dist/ folder contents to the server location you want, and it should do the rest.

For any other server hosting types, you'll have to figure it out for yourself.


Typescript Linting

With a few exceptions, all typescript linting is performed by the built in Angular linter. Personal preferences can be added in the tslint.json file, which resides at project root level.

To run only the typescript linter, simply run the command: ng lint

To run all the linters, simply run the command: npm run lint


Pug Linting

All pug linting is performed by the third-party linter: pug-lint. Personal preferences are currently and can be added in the .pug-lintrc.json file, which resides at project root level.

To run only the typescript linter, simply run the command: ng lint:pug

To run all the linters, simply run the command: npm run lint


Sass Linting

All sass linting is performed by the third-party linter: stylelint. Personal preferences are currently and can be added in the .stylelintrc.json file, which resides at project root level.

To run only the typescript linter, simply run the command: ng lint:pug

To run all the linters, simply run the command: npm run lint:style

About

(Complete) A front-end interface to monitor and control my backend, automated, cryptocurrency trading bot.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published