Git Product home page Git Product logo

dolibarr_proxy's Introduction

Dolibarr Proxy

Simple proxy app to request your Dolibarr Rest Api.

Requirements

  • Enable API REST module in your dolibarr installation.

Run with Docker

You can easily run dolibarr_proxy with Docker:

Copy .env.example to .env and run the server:

docker run \
    -p 1993:1993 \
    --name dolibarr_proxy \
    -d ctrlouis/dolibarr_proxy # start dolibarr_proxy

docker run --rm -p 1993:1993 --env-file .env ctrlouis/dolibarr_proxy

Run in Development

Copy .env.example to .env, fill with your values and run the server:

docker-compose up

Build image

docker build -t dolibarr_proxy .

Usage

Once dolibarr_proxy is running you can send requests with to the container like you do with your dolibarr rest api :

curl -X GET 'localhost:1993/api/index.php/products?sortfield=t.label&sortorder=ASC'

Environment variable summary

Variable Default value Description
PORT 1993 Api listening port
DOLIBARR_API_BASE NONE Your dolibarr base url
DOLIBARR_API_KEY NONE Your dolibarr api key
DOLIBARR_RESSOURCE_ALLOWED NONE Allowed ressources (same as the user api-key authorizations)
DOLIBARR_CATEGORIE_REQUIRED false Force search products by category (keep products without category hidden)

dolibarr_proxy's People

Contributors

ctrlouis 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.