Skip to content

Demo Application for implementing Webdav for Basel Hack Challenge 2022

Notifications You must be signed in to change notification settings

iwf-web/webdavdemo

Repository files navigation

Webdav Demo Application

Webdav Demo Application for BaselHack 2022

Click here for the challenge description

Setting up everything

A Symfony 5 application running inside Docker in an automatically provisioned Vagrant box.

You can use this example for easy local development and to create Docker images ready to be run on a server with Docker enabled.

It's very useful if you want all your developers to work with the exact some software versions and configurations. And to generate Docker images you can use to run the exact same software on a production server.

Includes:

  • Symfony 5 demo app
  • Vagrant provisioning with vagrant-scripts
  • This documentation

It's based on our Open source Docker images:

The virtual machine is based on Debian 9 (Stretch), using the debian/contrib-stretch64 box image.

The following components are used:

  • PHP 8.1
  • Nginx 1.20
  • MySQL 8.0
  • PhpMyAdmin

For local development the following tools are available:

  • XDebug
  • Composer
  • Yarn

Requirements

To run this example project you need:

If you don't have an Account on Dockerhub you should create one. The setup process will ask you for the credentials.

You should also install these vagrant plugins:

  • vagrant-notifyforwarder
  • vagrant-hostsupdater
  • vagrant-vbguest

If you're running Windows you should also install:

  • vagrant-gatling-rsync
  • vagrant-rsync-back

Install plugins like this:

vagrant plugin install vagrant-notifyforwarder
vagrant plugin install vagrant-hostsupdater
vagrant plugin install vagrant-vbguest

Setup this project

Just run:

./bin/init_project.sh
cd docker/vagrant
vagrant up

It takes about 10-15 minutes, depending on your Internet and machine speed. During the setup you need to enter your docker credentials. Please have them at hand.

After everything is completed, a message is displayed saying:

Machine was booted, startup scripts are running inside the docker containers - please wait. 
If you're curious, you can execute 'docker logs -t fpm' inside vagrant or use the docker-logs.sh script. 
Once finished, the application will be available on http://webdavdemo

Now you can browse to http://webdavdemo and you see the demo application

Learn more & start working

There is no "su"-user in fpm-container anymore. If you need root-privileges, login with root:

docker exec -ti -uroot fpm bash

C) Run yarn

use yarn to compile react code

yarn
yarn watch

About

Demo Application for implementing Webdav for Basel Hack Challenge 2022

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •