CORS demo with Slim framework (PHP) and jQuery.
- Boot the Docker containers:
docker-compose up -d
-
Download Composer
-
Download dependencies with Composer:
docker-compose run --rm -w /var/www --entrypoint php php composer.phar install
- Download front-end dependencies with Bower:
docker run --rm -it -v `pwd`:/var/www -w /var/www nyrobert/js-tools bower install
Navigate to http://localhost:8080, where you’ll see the application running. You can call HTTPS and CORS enabled AJAX urls from the HTTP-loaded main page.
Run JSHint checks:
docker run --rm -it -v `pwd`:/var/www -w /var/www nyrobert/js-tools jshint js
Run JSCS checks:
docker run --rm -it -v `pwd`:/var/www -w /var/www nyrobert/js-tools jscs js
This project is licensed under the terms of the MIT License (MIT).