skip to Main Content

I’m working on a project for a tutoring institute where we have an existing Odoo application managing our data. We now need to create a web application using React that provides two interfaces: one for instructors and one for students. Each interface should display a list of appointments, and users should be able to schedule new appointments.

Here’s where I need guidance:

Backend Choices:

We are considering two backend options:
Using the Odoo REST API.
Using Node.js with Express.js to create a custom backend.
Odoo REST API:

We are aware of the Odoo REST API’s capabilities, but we are concerned about the customization complexity. None of our team members have prior experience with Odoo.
Node.js with Express.js:

Is it possible to create an Express.js backend that connects with our Odoo application?
and how will services like authentication be implemented?
We want to ensure that when instructors teach new lessons, the Odoo database is updated to reflect changes in their salary.
Could someone provide insights, guidance, or a code example on how to achieve this integration with an Express.js application? Any advice or experiences you can share would be greatly appreciated.

Thank you!

I haven’t tried anything yet I/m still trying to figure out which approach is more effictive.

2

Answers


  1. Nice to meet you.
    I am really interesting about your tutoring project.
    This is my opinion.


    I have some experiences in Node.js wit Express.js and Odoo Rest API too.
    Talking about this, first you can connect to the Odoo app using various libs available for Odoo integration such as node-odoo or xmlrpc.
    If then you can make operation like CRUD operation on Odoo models.

    And next is integrating the Express.js with Odoo.
    After the connection is established, you can use the lib to perform operations like fetching appointment data, creating new appointments, updating salaries etc.

    To interact with the Odoo app’s data you can use library’s methods like search, read, create, update, delete.

    You can implement authentication using middleware like JWT or session-based authentication.

    Could you let me know about your project or plans?.
    I wanna help you more.
    Thanks.


    Login or Signup to reply.
  2. i would suggest you to read the documentation about odoo external api here :

    https://www.odoo.com/documentation/16.0/developer/reference/external_api.html

    you can implement this with your express server and as for the authentication you can store a jwt token and handle it with your express server as well

    i hope it is helpful and if you have any questions i am here to help

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search