Skip to content

tonviet712/wsbookshelf

Repository files navigation

Running with Docker

Installing Docker

Configuring the application

  • copy the docker-compose.yml.example file to docker-compose.yml
  • change volumes mapping from /var/www/html/bookshelf:/app to your desired path
  • once you install Docker, you can start the containers using the Docker compose
$ docker-compose up -d
  • copy the .env.example file to .env
  • run php artisan key:generate to set APP_KEY
  • run npm install to install dependencies
  • run npm run dev to run all Mix tasks
  • start a reverse proxy container using this docker-compose file
  • setup the local domain dev.bookshelf.wsgroup-asia.net using /etc/hosts

You should be able to visit the application at http://dev.bookshelf.wsgroup-asia.net.

Important Commands

  • run npm run watch and keep that terminal open to watch all relevant files for changes
  • run composer check-name to check naming conventions
  • run composer cs-check to check your code (one by one) to follow standards
  • run composer cs-check-all to check your code (all) to follow standards
  • run composer cs-fix to fix your code (one by one) to follow standards
  • composer dumpautoload
  • php artisan cache:clear
  • php artisan view:clear
  • php artisan config:clear
  • php artisan route:clear
  • php artisan clear-compiled
  • php artisan route:list

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published