Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nghuuphuoc/responsivetest
Test responsive layout, powered by AngularJS and Bootstrap 3. If this tool is useful to you, please Star it.
https://github.com/nghuuphuoc/responsivetest
Last synced: about 2 months ago
JSON representation
Test responsive layout, powered by AngularJS and Bootstrap 3. If this tool is useful to you, please Star it.
- Host: GitHub
- URL: https://github.com/nghuuphuoc/responsivetest
- Owner: nghuuphuoc
- Archived: true
- Created: 2013-04-24T03:20:22.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-05-24T10:17:04.000Z (over 8 years ago)
- Last Synced: 2024-07-21T03:36:49.034Z (5 months ago)
- Language: JavaScript
- Homepage: http://responsivetest.net
- Size: 9.58 MB
- Stars: 439
- Watchers: 47
- Forks: 203
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- awesome-vietnamese - Responsive Test
README
# Responsive Test
This tool is used to test responsive layout. You can see the live demo on http://responsivetest.net.
Powered by [jQuery](http://jquery.com), [Bootstrap 3](http://getbootstrap.com), and [AngularJS](http://angularjs.org).
> You should also check [BootstrapValidator](http://bootstrapvalidator.com), the best jQuery plugin to validate form fields. It's another cool thing by [@nghuuphuoc](http://twitter.com/nghuuphuoc)
![ResponsiveTest screen shot](img/demo.gif)
## Download and run
* Download ResponsiveTest from the [Github page](http://github.com/nghuuphuoc/responsivetest) directly.
It's also possible to download the tool with [bower](http://bower.io):```bash
$ bower install responsivetest
```* Point your web server to the ResponsiveTest directory.
You can use python to simplify this step by running the following command:```bash
$ python -m SimpleHTTPServer
```Then, access the browser at ```http://localhost:```
> ResponsiveTest is written in CSS, Javascript, and HTML entirely.
> The tool uses an Ajax request to retrieve the devices data which is stored in an external file (```data/devices.json```).
>
> As you know, the browser doesn't allow to do it if the file is served locally due to security concern
> ```Origin null is not allowed by Access-Control-Allow-Origin```
>
> That's why we need to run it with a HTTP server.## Add more devices
The device sizes are defined in ```data/devices.json``` file.
If you want it to support more devices and screen resolutions, please fork the project and pull a new request.
You don't have to rebuild if you only change the ```data/devices.json``` file.
> By default, the tool will randomly load an URL found in ```randomUrls``` section from ```data/devices.json```.
## Build
The build process finds the CSS, JS files in the ```src``` and compresses them, places compressed files in the ```dist``` directory.
First, use [grunt](http://gruntjs.com) to install the dependent packages:
```bash
$ npm install grunt --save-dev
$ npm install grunt-contrib-copy --save-dev
$ npm install grunt-contrib-cssmin --save-dev
$ npm install grunt-contrib-uglify --save-dev
$ npm install grunt-ngmin --save-dev
```Then, execute the following command to build:
```bash
$ grunt
```## Author
ResponsiveTest is developed by Nguyen Huu Phuoc
* [http://twitter.com/nghuuphuoc](http://twitter.com/nghuuphuoc)
* [http://github.com/nghuuphuoc](http://github.com/nghuuphuoc)Big thanks to the contributors:
* [michaseel](https://github.com/michaseel)
* [Emrehan Tuzun](https://github.com/emrehan)## License
Copyright (c) 2013 Nguyen Huu Phuoc
ResponsiveTest is licensed under the MIT license.