Coder Social home page Coder Social logo

kentbong / angular-art-gallery Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cptcloss/angularjs-imgur-gallery

0.0 1.0 0.0 404 KB

Art Gallery application using dynamic API data built with AngularJS

ApacheConf 0.41% JavaScript 95.58% CSS 0.12% HTML 3.89%

angular-art-gallery's Introduction

Angular Art Gallery

Art Gallery application using dynamic API data built with AngularJS

See a Plunker

Features

Getting Started

Clone the repository
git clone [email protected]:gigablox/angular-art-gallery.git

Compiled Examples

These are ready to go for development and production environments.

/examples/development
/examples/production

Build Your Own

This AngularJS project is wrapped in commonly used front end development tools to save you time. Development and production environments are configured to inject static assets managed by bower. Production build concats and compresses.

Install the dependencies

cd angular-art-gallery
npm install
bower install
npm install -g grunt-cli

Get an Imgur API key

Get an Imgur API key and add it to your app.config

$imgurGlobalProvider.options({
    apiKey:'1234567890abcdefgh',
    account:'YourAccountName'
});

Build with Grunt

grunt package:dev
grunt package:dev:watch
grunt package:prod

Nginx/Apache

Point your doc-root

/build/development
/build/production

pushState Support

Nginx pushState server{} rules

# Need this for $locationProvider.html5Mode(true);
location / {
    try_files $uri /index.html;
}

Apache pushState .htaccess rules

    #Need this for $locationProvider.html5Mode(true);
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !index
    RewriteRule (.*) index.html [L]

Here are more complete rules for both Nginx and Apache

Node Server

Build your package and point the node server to /build/<environment>

node web-server.js
http://127.0.0.1:8000/index.html

License

Copyright (c) 2013 Daniel Kanze (@gigablox) Licensed under the MIT License.

angular-art-gallery's People

Watchers

Kent Bong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.