javascript-angular-starter

Starter project for Angular.js – Works with any prismic.io repository – Work in progress

2 years after

Angular.js starter project for prismic.io

This is a blank Angular.js project that will connect to any prismic.io repository, and trivially list its documents. It is based on:

  • the Angular.js Seed boilerplate (read its README to learn how to use it)
  • the angular-prismicio module, which uses the prismic.io Javascript development kit and provides a few helpers to integrate with Angular.js. (Note that the version used is the unstable version for now, as the stable one does not yet contain the Prismic.api() and Prismic.ctx() functions that allow to perform advanced queries.)

Getting started

Launch the starter project

Fork this repository, then clone your fork, make sure you installed node and npm, and run npm start.

Your Angular.js starter project is now up and running! By default, it will list and display documents from our "Les Bonnes Choses" example repository.

Configure the starter project

Change the https://lesbonneschoses.prismic.io/api API endpoint in the PrismicProvider in js/app.js into your repository's endpoint.

To set up the OAuth configuration and interactive signin, go to the Applications panel in your repository's settings, and create a new OAuth application. You simply have to fill in an application name and potentially the callback URL (localhost URLs are always authorized, so at development time you can omit to fill in the Callback URL field). After submitting, copy/paste the clientId & clientSecret tokens into the proper place in your configuration.

Get started with prismic.io

You can find out how to get started with prismic.io on our prismic.io developer's portal.

Understand the JavaScript development kit

You'll find more information about how to use the development kit included in this starter project, by reading its README file.

Specifics and helpers of the Angular.js starter project

You will find them all in the angular-prismicio module.

Contribute to the starter project

Contribution is open to all developer levels, read our "Contribute to the official kits" documentation to learn more.

Licence

This software is licensed under the Apache 2 license, quoted below.

Copyright 2013 Zengularity (http://www.zengularity.com).

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Related Repositories

angular-starter

angular-starter

:tada: An Angular Starter kit featuring Angular 4 (Router, Http, Forms, Services ...

angular-starter

angular-starter

:tada: An Angular Starter kit featuring Angular 4 (Router, Http, Forms, Services ...

awesome-angular

awesome-angular

:page_facing_up: A curated list of awesome Angular 2 and Angular 4 resources by ...

awesome-angular

awesome-angular

:page_facing_up: A curated list of awesome Angular 2 and Angular 4 resources by ...

angular-seed-advanced

angular-seed-advanced

Advanced Angular seed project with support for ngrx/store, ngrx/effects, ngx-tra ...


Top Contributors

IgorMinar petebacondarwin NgDashboard jeffbcross rudyrigot btford vojtajina michaelneale tbosch mhevery elnur alexeygolev 4ZM chmac tebriel cburgdorf danielzen DjebbZ ifedotov iszak jksdua rolaveric juliemr Khobalt marcenuc paulmelnikow segeda philspitler fuentesjr scottsword