Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/levimykel/prismic-angular-adding-a-navigation
Final project files for the Adding a Navigation article in the Prismic & Angular 6 series
https://github.com/levimykel/prismic-angular-adding-a-navigation
Last synced: 9 days ago
JSON representation
Final project files for the Adding a Navigation article in the Prismic & Angular 6 series
- Host: GitHub
- URL: https://github.com/levimykel/prismic-angular-adding-a-navigation
- Owner: levimykel
- Created: 2018-08-31T14:48:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-31T14:50:37.000Z (over 6 years ago)
- Last Synced: 2024-11-12T20:49:03.717Z (2 months ago)
- Language: TypeScript
- Size: 104 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Prismic & Angular 6 - Adding a Navigation
This is the end result of following the Adding a Navigation article about integrating Angular 6 with Prismic (API-based CMS).
## Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
### Prerequisites
Make sure that you have [Node.js](https://nodejs.org/en/download/) and [npm](https://www.npmjs.com/get-npm) installed on your machine.
*The Angular CLI runs best with Node.js version 8.x or greater and npm version 5.x or greater. You can verify this by running* `node -v` *and* `npm -v` *in a terminal/console window.*
You can install the Angular CLI by running the following command in your terminal.
```
npm install -g @angular/cli
```### Installing
After downloading or cloning this project, run the following command from the root of your project files.
```
npm install
```Then you can connect it to your Prismic repository by updating the endpoint in the `src/prismic-configuration.ts` file.
```
apiEndpoint: 'https://your-repo-name.prismic.io/api/v2',
```Make sure that you've created some content in your repository as described in the Prismic & Angular 6 articles.
### Running the project
To launch the project in your local environment, run the following command.
```
ng serve --open
```## Built With
* [Angular](https://angular.io/) - Front-end web application platform
* [Prismic](https://prismic.io/) - Headless API-based CMS