Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Angular frontend for our Contentful website

License

Notifications You must be signed in to change notification settings

Assembly-WebCrew/contentful-web

Repository files navigation

ContentfulWeb

Build Status Test Coverage Maintainability Dependencies Status NSP Status

This project is for Assembly Party's website. It fetcheds the contents from Contentful API and serves them as webpages.

Commits are automatically tested and deployed to server by Travis CI.

This project was generated with Angular CLI version 6.1.2

Running the project

  • download the project git clone https://github.com/Assembly-WebCrew/contentful-web.git
  • (recommended)install Yarn
  • make sure you have Angular CLI 6+ yarn global add @angular/cli or npm install -g @angular/cli
  • run yarn or npm install inside contentful directory
  • run yarn start or npm start
  • navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|module.

Build

Run yarn build or npm run build to build the project(both prod and dev). The build artifacts will be stored in the dist/ directory. Use the build:prod instead for a production build.

Tests

Running unit tests

Run yarn test or npm test to execute the unit tests via Karma. Test uses Chrome for default.

Running end-to-end tests

Run yarn e2e or npm run e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.