Effortless Vactory-Next App creation with a Single Command.

Creating new vactory-next project using terminal interactive prompt.


Installation

To create a new app, type the following command :

yarn generate-project

The prompt will ask you to choose one or more languages, you can do that by pressing the space button :

? Choose the languages to be enabled …
✔ English
✔ Français
✔ العربية

After that, complete the rest of the questions by entering the appropriate answers :

? Choose the default language …
English
❯ Français
Arabe
? Enter the 'PROJECT NAME': › vactory-project
✔ Enter the 'PROJECT NAME': · vactory
✔ Enter the 'DRUPAL BASE URL': · https://api.vactory.lecontenaire.com
✔ Enter the 'NEXT DRUPAL BACKOFFICE URL' (to allow next iframing): · http://backend.vactory.lecontenaire.com
✔ Enter the 'Next image domain' (generally all website files would be served through this domain): · media.vactory.lecontenaire.com
✔ Enter the 'RECAPTCHA SITEKEY': · 6LdccOUeAAAAAKnRDy2yPKLc9YAy-Jn-CdKhrjUm
✔ Enter the 'Recaptcha key SECRET': · 6LdccOUeAAAAAHKQlW3f3B5khCjx0B5rBFZTN7P1
✔ Enter the 'OAUTH CLIENT ID': · 57a079aa-06e4-4725-9b38-49722901468e
✔ Enter the 'OAUTH CLIENT SECRET': · 123456
✔ Enter the 'GOOGLE MAPS KEY': · 57a079aa-06e4-4725-9b38-497229234687
✔ Enter the 'SHIELD USER': · admin
✔ Enter the 'SHIELD PASSWORD': · adminpass
✔ Enter the 'NEXTAUTH URL': · https://vactory.lecontenaire.com
✔ Enter the 'NEXTAUTH SECRET': · 123456

Once the answers are completed, the script will generate the new app and execute the necessary commands :

  1. Create the package.json of the created app.
  2. Set up project.config.js with default language and enabled ones which are entered during the prompt process :
  • language : the default language for the project.
  • labels : an array of languages containing the code and label for each language.
  1. Set up the Dockerfile.easypanel.nextjs.
  2. Generates the .env file using the prompted questions/answers.
  3. Running the commands :
  • rm -rf apps/capital-azur apps/documentation

  • yarn install

  • yarn workspace @vactory/console build

  • yarn workspace @vactorynext/core build

    Here is a video to assist you :