You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- You will be creating an API to read and update a table in a MYSQL database. -OK
- You will be creating an HTML table themed with Bootstrap3 to display data returned from the database. -OK
- You will be creating a separate button to generate random names and passwords to update the MYSQL table with -OK
- No PHP can be included in the Codeigniter view. -OK
- JavaScript must be used to request and update the data with your API. -OK
- Create a HTML table with id, user_name and password columns -OK
- Create API method to read list of students from MYSQL table -OK
- Create API method to update list of students in MYSQL table -OK
- Fill HTML table with data returned from API read method -OK
- Create separate HTML button that randomly changes the passwords and user_names and calls the API update method the MYSQL table -OK
- Commit all your changes to Github for review
- Use CIUnit to test 'ALL' PHP functionality. (Controllers, Models)
- Make an initial commit on Github with no changes before you start working on the assignment -OK
- main.js Setups dependencies and modules
- app.js Declares general useful methods
- start.js Initializes the initial modules and methods
- student.js Methods related to the "student" object
- students.js Methods related to the "students" object
Server
- interfaces/* Provides interface templates for models & controllers to follow
- libraries/* Provides classes that can be reused in all models & controllers
Testing
- application/tests/student_tests/* Directory for test classes
Considerations
Tests
- Installed phpunit with composer https://phpunit.de/manual/current/en/installation.html#installation.composer
- Installed ciunit with composer https://bitbucket.org/kenjis/my-ciunit
- Modify core codeigniter files as directed by ciunit installation http://www.cuelogic.com/blog/getting-started-with-phpunit-codeigniter/
- Prepare test database http://d.hatena.ne.jp/Kenji_s/20120117/1326763908
- **Tests are located here: @link: https://www.letsdofunshit.today/test/ciunit/**
Speed
- Minification of JS & CSS assets with YUICompressor & Node lessc
- Asyncronous module loading with requireJS
- GZIP server compression
- CDN resource loading to increase client caching probability
Security
- HSTS headers for forced TLS
- Remove obsolete cyphers in SSL negotiation
- HTTP to HTTPS redirection
- Password hashing with openssl & mcrypt with native PHP 5.6.9
- Strict JSON communication
- Restrict endpoint allowed methods to POST, GET (not in server directives, however)
Live Version
- **Located here @link: www.letsdofunshit.today/test**
Todos
- Finish unit testing
- Rewrite ciunit to improve UI and allow subdirectories then pull request @link: https://github.com/kitsunde/CIUnit