Giter Site home page Giter Site logo

dearith / mfbase Goto Github PK

View Code? Open in Web Editor NEW

This project forked from metwork-framework/mfbase

0.0 1.0 0.0 812 KB

metwork/mfbase module

Home Page: http://metwork-framework.org

License: BSD 3-Clause "New" or "Revised" License

Makefile 13.44% Shell 79.74% Python 6.82%

mfbase's Introduction

logo

mfbase

Status (master branch)

Drone CI Maintenance License Gitter Gitter

What is it ?

This is the storage module of the metwork framework.

Quickstart

Prerequisites

When mfbase is installed, the command ls /opt |grep mfbase must return something.

mfbase user

The following is done as mfbase user (there is no default password, change it with passwd mfbase command as root user if you want or use su - mfbase from root to log in as mfbase user.

When you are in mfbase user, you must see a MetWork welcome screen on your terminal like:

           __  __      ___          __        _
          |  \/  |    | \ \        / /       | |
          | \  / | ___| |\ \  /\  / /__  _ __| | __
          | |\/| |/ _ \ __\ \/  \/ / _ \| '__| |/ /
          | |  | |  __/ |_ \  /\  / (_) | |  |   <
          |_|  |_|\___|\__| \/  \/ \___/|_|  |_|\_\


Welcome on xxxx (xxxxx.meteo.fr, 192.168.1.170)
(module: MFBASE, version: integration.14.3d17536)

 14:28:51 up 18 days,  2:49,  1 user,  load average: 0.16, 0.21, 0.23


When you see that in your terminal, you can continue.

Creating your first plugin

Use the command bootstrap_plugin.py create foo to bootstrap a plugin named foo.

After answering the questions, you have a foo directory in your current directory.

These are the sources of your newly created plugin. Go inside with cd foo.

Releasing your first plugin

Use the command make release inside your foo directory. You get a .plugin file in the foo directory.

Installing your first plugin

Use the command plugins.install [...].plugin to install your plugin.

This will create:

  • a plugin_foo postgresql database
  • a plugin_foo postgresql username (with full rights on plugin_foo database)
  • a default password: plugin_foo for plugin_foo username

Testing your database

As the default port for the mfbase postgresql server is 7432, you can connect to your newly created database with this command:

psql -U plugin_foo -h localhost -p 7432 plugin_foo
# (use plugin_foo as password when prompted)

or by configuring your favorite postgresql client to:

hostname: your_mfbase_host
username: plugin_foo
password: plugin_foo
port: 7432
database: plugin_foo

Reference

Managing mfbase services (as mfbase user)

Start

With mfbase.start you start mfbase services. It's done automatically during machine start process.

The first time, an automatic initialization is done.

Stop

With mfbase.stop, you stop mfbase services. It's done automatically during machine shutdown process.

Status

With mfbase.status, you can check mfbase services. If you need to do that within a non-interactive code, please don't parse the output and use the return code ($? in shell). If the return code is 0, everything is fine.

Init

With mfbase.init, you can reinit your module. With this command, you will loose all your databases.

Note: services are automatically stopped, so you have to start them again after this command.

Managing mfbase plugins (as mfbase user)

List

plugins.list

Install

plugins.install FULL_PATH_TO_PLUGIN_FILE

Uninstall

plugins.uninstall PLUGIN_NAME_WITHOUT_PATH_EXTENSION_OR_VERSION

Installation guide

See this document.

Configuration guide

See this document.

Contributing guide

See CONTRIBUTING.md file.

Code of Conduct

See CODE_OF_CONDUCT.md file.

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.