GithubHelp home page GithubHelp logo

vuestorefront-community / template-odoo Goto Github PK

View Code? Open in Web Editor NEW
14.0 12.0 13.0 26.49 MB

Base Code to start new VSF-ODOO nuxt project

License: MIT License

SCSS 4.66% Vue 80.22% TypeScript 6.50% JavaScript 8.53% Dockerfile 0.09%

template-odoo's Introduction

Vue Storefront

Stay connected

GitHub Repo stars Twitter Follow YouTube Channel Subscribers Discord

Vue Storefront 2 integration with Odoo

This project is a Odoo integration with Vue Storefront 2. This integration is being developed and maintained by ODOOGAP / PROMPTEQUATION ❤️

Check our demo server (it's a dev server so could be down sometimes)

How to start?

  1. Copy .env.example to .env
  2. DOT NOT COMMIT .env file
# install dependencies
yarn install

# generate routes and redirects from ODOO
yarn update:routes 
yarn update:redirects

# serve with hot reload at localhost:3000
yarn dev

# build for production and launch server
yarn build
# build local
yarn build:local

or use docker-compose

docker-compose up --build -d
# you might need to
docker-compose restart odoo nginx

middleware.config.js

redisClient will enable/disable cache redis on API level (different from SSR cache)

Want to contribute? Ping us on odoo channel on our Discord or email us at info (at) odoogap.com!

Resources

Support

If you have any questions about this integration we will be happy to answer them on odoo channel on our Discord.

Credits

Authors:

  • ODOOGAP / PROMPTEQUATION

Contributors ✨


cpintofonseca

💻

SDMonteiro

💻

brunoodoogap

💻

Diogo Duarte

💻

Leonardo Ribeiro

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

template-odoo's People

Contributors

bloodf avatar dduarte-odoogap avatar ekhan-odoogap avatar leomunizodoo avatar odranoelbr avatar tupiznak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

template-odoo's Issues

JavaScript heap out of memory due to large custom routes

An Odoo installation with approximately 20,000 products generates a very large customRoutes/products.json file after running yarn update:routes.

yarn dev runs very slowly and fails with a JavaScript heap out of memory error.

The current custom routes implementation seems like an inefficient approach. https://github.com/vuestorefront-community/template-odoo/blob/main/routes.js#L11

I recommend implementing a middleware to use Redis for loading the custom routes.

<--- Last few GCs --->

[1537708:0x538f750]   231374 ms: Mark-sweep (reduce) 1254.5 (1390.7) -> 1254.1 (1335.8) MB, 198.0 / 0.0 ms  (average mu = 0.720, current mu = 0.053) last resort GC in old space requested
[1537708:0x538f750]   231584 ms: Mark-sweep (reduce) 1254.1 (1335.8) -> 1254.1 (1319.6) MB, 210.1 / 0.0 ms  (average mu = 0.547, current mu = 0.000) last resort GC in old space requested


<--- JS stacktrace --->

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: 0xb09c10 node::Abort() [/home/mo/.nvm/versions/node/v16.15.0/bin/node]
 2: 0xa1c193 node::FatalError(char const*, char const*) [/home/mo/.nvm/versions/node/v16.15.0/bin/node]
 3: 0xcf8dbe v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/home/mo/.nvm/versions/node/v16.15.0/bin/node]
 4: 0xcf9137 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/home/mo/.nvm/versions/node/v16.15.0/bin/node]
 5: 0xeb09d5  [/home/mo/.nvm/versions/node/v16.15.0/bin/node]
 6: 0xec3448 v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/home/mo/.nvm/versions/node/v16.15.0/bin/node]
 7: 0xe911a6 v8::internal::Factory::CodeBuilder::AllocateCode(bool) [/home/mo/.nvm/versions/node/v16.15.0/bin/node]
 8: 0xe91805 v8::internal::Factory::CodeBuilder::BuildInternal(bool) [/home/mo/.nvm/versions/node/v16.15.0/bin/node]
 9: 0xe9221e v8::internal::Factory::CodeBuilder::Build() [/home/mo/.nvm/versions/node/v16.15.0/bin/node]
10: 0x14e100e v8::internal::RegExpMacroAssemblerX64::GetCode(v8::internal::Handle<v8::internal::String>) [/home/mo/.nvm/versions/node/v16.15.0/bin/node]
11: 0x11cba49 v8::internal::RegExpCompiler::Assemble(v8::internal::Isolate*, v8::internal::RegExpMacroAssembler*, v8::internal::RegExpNode*, int, v8::internal::Handle<v8::internal::String>) [/home/mo/.nvm/versions/node/v16.15.0/bin/node]
12: 0x11e9dd7 v8::internal::RegExpImpl::Compile(v8::internal::Isolate*, v8::internal::Zone*, v8::internal::RegExpCompileData*, v8::base::Flags<v8::internal::JSRegExp::Flag, int>, v8::internal::Handle<v8::internal::String>, v8::internal::Handle<v8::internal::String>, bool, unsigned int&) [/home/mo/.nvm/versions/node/v16.15.0/bin/node]
13: 0x11ea580 v8::internal::RegExpImpl::CompileIrregexp(v8::internal::Isolate*, v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>, bool) [/home/mo/.nvm/versions/node/v16.15.0/bin/node]
14: 0x11eb17e v8::internal::RegExpImpl::IrregexpPrepare(v8::internal::Isolate*, v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>) [/home/mo/.nvm/versions/node/v16.15.0/bin/node]
15: 0x11eb2f7 v8::internal::RegExpImpl::IrregexpExec(v8::internal::Isolate*, v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>, int, v8::internal::Handle<v8::internal::RegExpMatchInfo>, v8::internal::RegExp::ExecQuirks) [/home/mo/.nvm/versions/node/v16.15.0/bin/node]
16: 0x12104c8 v8::internal::Runtime_RegExpExec(int, unsigned long*, v8::internal::Isolate*) [/home/mo/.nvm/versions/node/v16.15.0/bin/node]
17: 0x15f2099  [/home/mo/.nvm/versions/node/v16.15.0/bin/node]
Aborted (core dumped)

checkout fix

If you click on shipping area while you are on billing area your data will disappear

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.