Skip to content
Snippets Groups Projects
Commit 0d6e59c4 authored by Tanveer Hossain's avatar Tanveer Hossain
Browse files

Update README.md

parent 8bd3209f
Branches
No related merge requests found
......@@ -18,14 +18,14 @@ Password : 123123
| it includes one or more forms | yes, line: 8, 12, 17 on forms.py |
| the forms have some validation | yes, line : 9, 10, 13, 15, 18, 19, 20 on forms.py |
| there are useful feedback messages to the user | yes, line : 21 on forms.py |
| it has a database backend that implements CRUD operations (the database can be mysql or mongodb) | create, read, apdate, delete |
| the create & update operations take input data from a form or forms | |
| there is user authentication (i.e. logins) | |
| the login process uses sessions | |
| passwords should be stored as hashes | |
| there is a way to logout | |
| there is a basic api i.e. content can be accessed as json via http methods | |
| it should be clear how to access the api (this could include comments in code) | |
| it has a database backend that implements CRUD operations (the database can be mysql or mongodb) | create, read, update, delete all dbhelper.py cotain CRUD operations |
| the create & update operations take input data from a form or forms | for exemeple line 71 to 74 on mytwits_mysql.py |
| there is user authentication (i.e. logins) | line 77 "login_user(user) " on mytwits_mysql.py |
| the login process uses sessions | line :77 on mytwits_mysql.py "login_user(user)" |
| passwords should be stored as hashes | hashed = hashlib.sha512((salt + password).encode('utf-8')).hexdigest() db.add_user(username,password,salt,hashed) on mytwits_mysql.py |
| there is a way to logout | line: 97 on mytwits_mysql.py |
| there is a basic api i.e. content can be accessed as json via http methods | can be accessed using the route '/api' @app.route('/api/<username>') |
| it should be clear how to access the api (this could include comments in code) | # with / <username> you can see for single users' api and without you see all the apis "@app.route('/api') @app.route('/api/<username>')" |
| commit history | https://gitlab.doc.gold.ac.uk/thoss003/term-2-lab/commits/master |
| | |
| ## Links | |
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment