Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 854 Bytes

README.md

File metadata and controls

23 lines (19 loc) · 854 Bytes

Blog Project

COMP586
Full stack blog with Laravel, Angular 4, and MySQL db
that contains an MVC, SPA, foreign keys, ORM, authentication, authorization, unit testing, CRUD, and some SOLID principles.

Folders:

  • angular -> frontend
    • Unit tests with Jasmine and Karma
      • Location: src/app/post.service.spec.ts
  • blog -> backend
    • Unit tests with PHPUnit
      • Location: Tests/Unit/PostTest.php

Build Angular

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Build Laravel

run php artisan serve to build build the project.

Running unit tests

Run ng test to execute the unit tests via Karma. Run phpunit to execute the unit tests in php unit tests.