<?php | |
namespace Tests\Helpers; | |
class UploadedFileTestHelper | |
{ | |
/** | |
* Create a fake file upload with the contents | |
* | |
* @param mixed $contents The contents of the temporary file |
version: '3.7' | |
services: | |
nginx: | |
image: nginx:latest | |
ngrok: | |
image: fnichol/ngrok | |
environment: | |
HTTP_PORT: nginx:80 | |
ports: |
version: '3.7' | |
x-defaults: &defaults | |
restart: unless-stopped | |
networks: | |
- learninghouse | |
services: | |
# Nginx Reverse Proxy | |
# https://github.com/jwilder/nginx-proxy |
# ----------------------------------------------------------------------------- | |
# Run various servers so they can be locally accessible to the host computer. | |
# Since the ports used below are default to their respective services you | |
# could have conflicts with other local instances. | |
# ----------------------------------------------------------------------------- | |
version: '3.4' | |
x-defaults: &defaults | |
restart: unless-stopped |
#!/bin/bash | |
echo "Flushing Docker... 🚽💦" | |
echo "Stopping container instances..." | |
docker stop $(docker ps -a -q) > /dev/null 2>&1 | |
echo "Removing container instances..." | |
docker rm $(docker ps -a -q) > /dev/null 2>&1 |
Your users love the service but would like some new features. The bookmark list can get very long, so they only want to see 20 bookmarks per page. It can also be difficult to find bookmarks created by the user, so they need filter to only show the logged in user's bookmarks. Lastly, users would like the ability to create private bookmarks only they can see.
Estimated time to complete: 1 - 2 hours
Your users would like a service for sharing bookmarks with one other. The service should have authentication to keep the bookmarks private to only registered users. Once authenticated all bookmarks are visible by all users. A user can post a new bookmark for all to see, but only that user can edit or delete the bookmark. All users like the to see the bookmarks in alphabetical order by title. New users can join the service via a public registration page.
Estimated time to complete: 3 - 4 hours
version: '2' | |
services: | |
app: | |
image: learninghouse/nginx-phpfpm:7.1 | |
volumes: | |
- ./:/app | |
ports: | |
- "8000:80" | |
links: |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.hostname = "pwap" | |
config.vm.network "private_network", ip: "192.168.10.10" | |
config.vm.provider :virtualbox do |vb| | |
vb.customize ["modifyvm", :id, "--memory", "1024"] |