Skip to content

CS5331 Submission#20

Open
luyangkenneth wants to merge 60 commits into
CS5331-Assignments:masterfrom
CS5331-ACKS:master
Open

CS5331 Submission#20
luyangkenneth wants to merge 60 commits into
CS5331-Assignments:masterfrom
CS5331-ACKS:master

Conversation

@luyangkenneth

Copy link
Copy Markdown

ad14e1017873fe5c989eab1572079977e561683fa1fe4fbd6dc32d7ba9d9a023

chunqi and others added 30 commits February 19, 2018 21:55
…oint

* Added backend Sqlite3 database. The database file will be located at `/src/service/database.db` when docker initializes
the application.
* Added schema declaration for `users` table.
* Added database initialization, setup and teardown.
* Added implementation for `/users/register` API endpoint.
* Changed `/src/service/team_members.txt`.
* Changed `/README.md` filling up some parts.
…ries. Also added relevant CSS and JS files.
* Added some debug print statements
* Fixed user created to return 201 Created
* Added implementation for `/users/authenticate` endpoint
* Added `tokens` table into database schema
* Added Postman collection at `/src/service/postman_collection.json` to test API according to specification
* Changed provided `make_json_response()` helper function into more general form
* Updated Postman colleciton so that testing is more seamless
* Added Postman test cases for newly implemented endpoint
* Changed schema for `tokens` table to reference `users` table
…ded logout functionality. Added authenticated user menu
…ded logout functionality. Added authenticated user menu
* Request to `/users/expire` with an expired token now returns false status
* Updated Postman collection with expired token test cases
* sqlite3 BOOLEAN type is equivalent to INTEGER where 0 is false and 1 is true
… / user authentication functions

* Added implementation of `/diary/create` endpoint
* Added common token validation function
* Added `diary_entries` schema. Note that `text` is a reserved keyword, must be double quoted
* Changed `diary_entries` schema to include username. Doh!
* Changed `validate_token` helper function to return username as well
* `publish_date` is stored as a string in ISO8601 format with microseconds truncated
…ted users

* Added custom sqlite3 adapters to convert bool (python) to BOOLEAN (sqlite3) and back
* Added Postman test cases for newly implemented endpoints
* Changed `diary/create` endpoint to return new diary entry id as `result` attribute as per specifications
* Added respective Postman test cases
…on validations

* Added validation helper functions for diary entry id and public value
* Added response helper functions for validation failure of id and public values
* Added Postman test cases for implemented endpoint
* Added installation of python2 bcrypt module to Dockerfile
* Changed `users` table password attribute to reflect as hashed_password
* Implemented bcrypt hashed password and comparison with default rounds=12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants