Code Monkey home page Code Monkey logo

shatteredbeam.github.io's Introduction

title subtitle
The ReadMe
The read me!

Build Status Maintainability Test Coverage

SPARK is the all-in-one wonderbot written and utilized by The Fuel Rat for rescue management. This project is under active development. As such, features may be added or removed without notice.

As this project is under heavy development, we cannot offer support at this time. However, please do report bugs or issues on our project here.

SPARK is currently incomplete.

Requirements

Installation

This script can be run as a Docker image or run locally.

To run as a docker image, you may use the provided docker-compose.

If you would prefer to run the service locally, bear in mind you may need to run a local PostgreSQL Database for the fact module.

Building via Docker

We have provided a docker-compose.yml suitably configured for building and running Mecha as a Alpine Linux multi-container service.

Run with Docker

To build Mecha via docker, run the following command:

docker-compose build mechasqueak

To verify the build completed successfully and you have a clean copy of the project, please run the test suites.

docker-compose run tests

To run the bot, after creating your configuration file (see Configuration below), run the following command:

docker-compose run mechasqueak

Run Locally

If you are not using pip, please see requirements.txt for the list of required libraries. You will need to install these manually.

  1. Clone the repository from the master branch, or for bleeding edge, use develop. Please keep in mind, Develop changes frequently and may be broken.
  2. Build your configuration file. Please see the Configuration section.
  3. Execute Mecha with python main.py --config <your configuration file> (You may need to use the python3 alias)
Flag Description
--clean-log New log file. Old one is deleted.
--config-file file.json Use configuration file file.json
--verbose Verbose mode. (Logging level set to Debug)
--nocolors Disable ANSI color coding in console.

Configuration

Configuration settings are stored in the config/ subfolder as JSON files.

By default, Mecha will attempt to load configuration.json (file not provided) from this subdirectory.

To configure Mecha locally, please copy the provided config.template.json to a new file. configuration.json and fill in the appropriate fields, see config/configuration.md for details.

When run via docker, it is not necessary to rebuild the image after changing configuration options as that directory is shared with the container (see config/configuration.md)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.