Angular-GH-Page is a simple Angular-app that fetches your GitHub-data via JSONP, displays some general infos about you and a list of your public repositories.
Visit my GitHub-page to get an impression.
First steps
First of all clone this repository:git@github.com:herschel666/angular-gh-page.git && cd angular-gh-page
After that you have to install the dependencies:bower install
npm install
Usage
- Navigate to
assets/scripts/app.jsand set your GitHub-username. The default value after cloning this repo iswillie-t-stokes. - Build the scripts and stylesheets by running
grunt buildinside your console. - Change the stylesheet-reference inside the
index.htmlfrommain.csstomain.min.css. - Remove all script-includes inside the
index.html. - Include
bower_components/angular-unstable/angular.min.jsandassets/scripts/app.min.jsinside theindex.html.
Development
If you don't just want to take this code and upload it but develop on it, do the following:- Leave the
index.htmlas it is! - Run
grunt karmainside your console to start the unit-tests. They re-run every time you save a js-file inside theassets/scripts-folder or thetest/specs-folder. - Run
grunt watchinside your console to automatically compile the SCSS everytime you save a css-file inside theassets/styles/app-folder. - Write JS and SCSS like there's no tomorrow. Btw: inside
assets/styles/ext/is an instance of the Bourbon-Mixins-library. Use it, if you like.
Notes
- To install and use the dependencies you will have to have Git, Node.js, Bower, Ruby and SASS installed on your machine. If one of them is missing, an appropriate error message will probably pop up inside your console.
- Angular-GH-Page uses the unauthorized GitHub-API. This works fine but the amount of requests is limited to 60/hour. If your GitHub-page is highly frequented you'll probably have build some kind of proxy-service, that caches the API-data and serves it to the Angular-app.
-
Angular-GH-Page filters all forked repositories from the
repo-list. This is just my personal preference. If you want to include
forked repositories inside your list, remove the
ownRepo-filter from theng-repeatinside theindex.html. If you want to do it thoroughly, remove theassets/scripts/filter/own-repo.jsas well.
from https://github.com/herschel666/angular-gh-page
这其实也是个建站程序。