Skip to content

nyrobert/cors-demo

Repository files navigation

CORS demo

CORS demo with Slim framework (PHP) and jQuery.

Requirements

Installation

  1. Boot the Docker containers:
docker-compose up -d
  1. Download Composer

  2. Download dependencies with Composer:

docker-compose run --rm -w /var/www --entrypoint php php composer.phar install
  1. Download front-end dependencies with Bower:
docker run --rm -it -v `pwd`:/var/www -w /var/www nyrobert/js-tools bower install

Usage

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.

Testing

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

License

This project is licensed under the terms of the MIT License (MIT).

About

CORS demo with Slim framework (PHP) and jQuery

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published