a blog for sun ra fans
The site is currently being hosted on the following url: http://204.48.21.85:8080/#/
Login credentials are as follows:
email => [email protected] password => hello
special note: if after login, creating a post/comment/reply does not work please log out, log back in and it should work. this is due to a weird bug related to the JWT auth library and fixing it was outside the scope of this project
Laravel is an MVC framework
Controllers can be found in the app/http/controllers directory
Laravel uses eloquent as its ORM
The models and their relationships can be viewed in the app directory
All controllers and some services have a contract dependency injected into them.
These contracts and services can be viewed in the app/contracts directory and the app/services directory.
A contract is binded to a service in the app/providers directory
Vue, VueX, and Vue-Router were used to make the front of this application a SPA
The code for these is found in the resources/js/ directory
Authentication for the app is handled with an external library that adds JWT tokens to post requests in order to authenticate a use
The back end for this app is tested using phpunit. Both controller and service tests have been written
The following the result of running all of the controller tests
The code for these tests are in the tests/controllers directory
The following the result of running all of the service tests
The code for these tests are in the tests/services directory.
These tests also include bounded exhaustive testing which explains the high assertion count