Skip to content

NFDI4Chem/vibspecdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pre-requirements:

php: "^8.1.8"
composer: "^2.2.4"
npm: "^14.15.4|^16.13.0"
node: "^14.18.0"

Installation

Common: install dependencies

composer install
composer update
npm install 
npm run dev
git config --global core.autocrlf false

DOCKER: install process

Up docker containers with:

docker-compose up -d

Down docker containers with:

docker-compose down

Correct output will be like (sail or docker), with different names:

[+] Running 6/6
 ⠿ Network serviceapp_laravel-php-nginx
 ⠿ Volume "serviceapp_sailpgsql"             Started
 ⠿ Container redis                           Started
 ⠿ Container pgsql                           Started
 ⠿ Container mailhog                         Started
 ⠿ Container laravel_sail                    Started

After installation set-up:

Check your docker id with:

docker ps

Enter into your docker container command line interface of (vibspecdb-laravel.test-1 || vibspecdb-backend-1) with:

docker exec -it **idcontainerahere** bash

Inside this docker container run migration and initial configuration:

php artisan migrate:fresh
npm run dev
npm install husky --save-dev
npx husky install
npm set-script prepare "husky install"
npx husky add .husky/pre-commit "npm test"
chmod +x ./.husky/pre-*
php artisan key:generate
php artisan optimize
php artisan config:clear
php artisan route:clear 

This set of commands should fix most of init problems.


Lerna shared vue components

Make sure that commands npm i and composer install are done.

npm i
npm run lerna

After these commands you may run to have online changes in browser:

npm run hot

You can develop shared vue modules, and push changes to your git sub-modules.


Needed Lerna structure (already done for this repo):

  • created folder /resourses/js/pakages
  • git repo with serviceappvuecomponents cloned
  • this repo was added as git submodule to the laravel repo
  • lerna.json config file added
  • package.json new npm command added

Releases

No releases published

Packages

No packages published

Languages