Giter VIP home page Giter VIP logo

odooconnectorapi's Introduction

OdooConnectorAPI

Overview

OdooConnectorAPI is a RESTful API designed to facilitate communication between external applications and the Odoo ERP system. It leverages FastAPI for efficient asynchronous communication and is containerized using Docker for easy deployment. This project also includes a Helm chart for Kubernetes deployments, allowing for scalable and manageable production environments.

Getting Started

Prerequisites

  • Python 3.8+
  • Docker and Docker Compose
  • Kubernetes cluster (for Helm deployment)
  • Helm 3

Local Setup

  1. Clone the repository:
git clone https://github.com/datacosmos-br/OdooConnectorAPI.git
cd OdooConnectorAPI
  1. Install dependencies:

Create a virtual environment and activate it:

python -m venv venv
source venv/bin/activate  # On Windows use `venv\Scripts\activate`

Install the required Python packages:

pip install -r requirements.txt
  1. Set up environment variables:

Copy the .env.example to .env and adjust the variables to match your Odoo setup:

cp .env.example .env

Edit .env to include your Odoo credentials and connection details.

  1. Run the application:
uvicorn app.main:app --reload

Using Docker Compose

  1. Build and run the container:
docker-compose up --build

This command builds the Docker image and starts the containerized application, reading the .env file for environment variables.

Deploying with Helm to Kubernetes

  1. Package the Helm chart:

Navigate to the Helm chart directory:

cd charts/odooconnectorapi

Package the Helm chart:

helm package .
  1. Deploy the chart to your Kubernetes cluster:

Assuming you have a Kubernetes cluster set up and your kubectl is configured to communicate with it:

helm install odooconnectorapi odooconnectorapi-0.1.0.tgz --values values.yaml

Make sure to adjust values.yaml according to your environment and requirements.

Configuration

The application can be configured using environment variables. See .env.example for a list of available variables.

Contributing

We welcome contributions! Please open an issue or submit a pull request for any improvements or features.

License

This project is licensed under the MIT License - see the LICENSE file for details.

odooconnectorapi's People

Contributors

marlon-costa-dc avatar marlon-costa-datacosmos avatar dependabot[bot] avatar

Watchers

Marlon avatar  avatar

Forkers

adeyihorizon

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.