Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use this cli ? #3

Open
kalmenchia opened this issue Jul 13, 2018 · 6 comments
Open

How to use this cli ? #3

kalmenchia opened this issue Jul 13, 2018 · 6 comments

Comments

@kalmenchia
Copy link

Hi ,the challenge to me is there is no documentation and i am also not familiar with Nodejs , so i not sure how to use this cli , can anyone help me to learn how to use vudoo-cli ? thanks.

@danzt
Copy link
Member

danzt commented Jul 26, 2018

Hi. Sorry for not having answered you before. It is a challenge to make a documentation but we are working on that.

I'll try to leave you here a few steps so you can compile the Build.js

It will be a rough way but Odoo-Webkit and Vodoo-Cli are not easy to understand the first time.

@danzt danzt closed this as completed Jul 26, 2018
@danzt danzt reopened this Jul 26, 2018
@danzt
Copy link
Member

danzt commented Jul 26, 2018

Hi. Sorry for not having answered you before. It is a challenge to make a documentation but we are working on that.

I'll try to leave you here a few steps so you can compile the Build.js

It will be a rough way but Odoo-Webkit and Vodoo-Cli are not easy to understand the first time.

@danzt
Copy link
Member

danzt commented Jul 26, 2018

Lo Hare en espanol asi que deberas traducir luego 😋

Luego de Clonar el repositorio debes acceder a la ruta vudoo-cli. Una vez ahí haces yarn -i o npm install. Yo te recomiendo yarn. Es el que usamos.

Instaladas las dependencias, accedes a vudoo-cli/bin

Acá viene la magia!
Vudoo usa 3 parámetros de los cuales 2 deben ser obligatorios.

  • init Inicia una aplicación Vudoo.
  • -d Le asignas una ubicación de directorio donde descargara los complementos de la aplicación!
  • -t Le indica el tipo de template que descargara en este caso

Empecemos. Si todo esta Bien instalado, podrías escribir vudoo-cli y te saldría la ayuda automática.

Luego hagamos Esto! ... ...

_vudoo-cli init new_module -t odoo10-semantic -d /home/user/folder_

New_module es el nombre que le das al modulo.
Luego de -t el template que escoges es primero la versión de odoo que usaras desde la version 8 hasta la versión 11 sumado a eso Tienes el framework, actualmente hay dos Semantic-Ui y Vuetify
-d este es opcional. Es para mantener organizado tu directorio.

Puedes ver lo que te digo en el repositorio de https://github.com/BMKeros/vudoo-templates Aca estan las ramas correspondientes a odoo y al frameword.

Una vez corrido el comando general, debes acceder a new_module/static/src/js/vue y hacer yarn -i Luego de instalar todas las dependencias, corre yarn build.
Con esto ya el modulo esta listo para usarse.

Corre con odoo tu modulo y Listo. Deberia correr.

Espero y te sirva la ayuda!

@kalmenchia
Copy link
Author

👍 ,cool , cool , cool !!! Thanks . love it !

@kalmenchia
Copy link
Author

Hi, having issues to start it !
image

am i using the right way ? thanks.

@kalmenchia kalmenchia reopened this Jul 28, 2018
@hostelix
Copy link
Member

hostelix commented Jul 28, 2018

Hi @kalmenchia

./vudoo-cli init my_module -t name_template -d path_dest

the available templates are in the vudoo-templates repository

example using template odoo10-vuetify

./vudoo-cli init my_module_vue -t odoo10-vuetify -d /home/my_user/projects

the options are:
-t => template = vudoo-templates = name-branch
-d => destination

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants