Git Product home page Git Product logo

artemis's Introduction

Artemis parts management system.

Install

  1. Install pre-requisites:

    * Python and pip
    * Git
    * Java
    * Elasticsearch (1.4.4 series)
    * (see http://www.elasticsearch.org)
    * Elasticsearch mapper pluging (https://github.com/elasticsearch/elasticsearch-mapper-attachments)
    
  2. Get the source:

    git clone https://github.com/cottagelabs/artemis
    
  3. Install the app:

    cd artemis
    pip install -e .
    
  4. Make sure lastintid can be created/written:

    # either check that the privileges for the user that will run the artemis
    # software allow it to create files in the artemis directory, or create
    # the following file and change its owner to the same user that will
    # run the artemis software
    
    touch lastintid
    cat '0' > lastintid
    chown USER:USER lastintid
    
  5. Run the webserver:

    python portality/app.py
    

Install example

Install commands on a clean installation of Ubuntu_11.10:

sudo apt-get install python-pip python-dev build-essential
sudo pip install --upgrade pip
sudo pip install --upgrade virtualenv
sudo apt-get install git

wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-1.4.4.tar.gz
tar -xzvf elasticsearch-1.4.4.tar.gz
./elasticsearch-1.4.4/bin/plugin -install elasticsearch/elasticsearch-mapper-attachments/2.4.3
./elasticsearch-1.4.4/bin/elasticsearch start

git clone http://github.com/cottagelabs/artemis
cd artemis
pip install -e .

python portality/app.py

You will now find your service running at localhost:5004.

Running as a service

In order to run as a long-lived service, you will need to ensure that elasticsearch starts when the machine starts up, and also that the Artemis service starts when the machine starts up.

Elasticsearch can be auto-started by using the service plugin. This is explained on the elasticsearch site.

Once elasticsearch is up and running as a service, you need to ensure that the artemis service will come up after machine restart. There are various ways to do this, for example supervisord is easy to install and configure on a linux machine.

Backups

All the data used by the Artemis service lives in the elasticsearch index. To back up all the data, all you need to do is copy the elasticsearch data folder (which is in the main elasticsearch folder) to your preferred backup location.

artemis's People

Stargazers

 avatar

Watchers

 avatar

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.