insanitymeetshh/file-sharing

File Sharing - InsanityMeetsHH

3.2.0 2020-01-19 16:52 UTC

This package is auto-updated.

Last update: 2020-01-19 16:57:42 UTC


README

This git is for fs.imhh.me. Take a look at screenshots.

This application based on Slim Skeleton 5 and Gulp Skeleton 4.

Required

Installation with Composer (Recommended)

$ composer create-project insanitymeetshh/file-sharing [app-name]
$ cd [app-name]
$ npm i
$ gulp build

Installation with Docker

This steps works with Windows, macOS and Linux.

  • Get project via $ git clone https://github.com/InsanityMeetsHH/file-sharing.git or zip download
  • Open a command prompt on your OS (if not already open) and navigate to the project folder
  • $ npm i
  • $ gulp build
  • Add "platform": {"php": "7.4.1"} to "config" in composer.json
  • $ cp config\additional-settings.dist.php config\additional-settings.php
  • Download composer.phar if not already done
  • $ php composer.phar install
  • $ docker-compose build
  • $ docker-compose up -d
  • $ docker inspect file-sharing-db search for IPAddress from DIRNAME_default (at the bottom) and set IP (e.g. 172.20.0.2 often by me) as Doctrine host in config\additional-settings.php
  • Open localhost:8080 for website or localhost:9999 for database gui
  • Adminer login: user = root, pass = rootdockerpw, host = IP from IPAddress
  • If you want to remove a container $ docker rm [container-name] -f e.g. $ docker rm file-sharing-db -f
  • If you want to remove a volume $ docker volume rm [volume-name] e.g. $ docker volume rm DIRNAME_db_data (first remove matching container)
  • If you want to remove all container $ docker rm file-sharing-db file-sharing-webserver file-sharing-adminer -f
  • If you want to remove all volumes $ docker volume prune (first remove all container)

Sources