#100DaysOfCode
#26
Preventing CSRF attacks
- used csurf
Set up a simple API
- used postman to test the API
- JSON web tokens
- DELETE request
- CORS
Pushed app to Heroku
#100DaysOfCode
#25
Added a "latest posts" feed to the dashboard
Built a simple chat feature
- used socket.io
Began frontend live form validation
- primarily used for user experience, not for security
#100DaysOfCode
#24
Added a "follow/unfollow user" feature
Looked at:
- await for multiple promises symultaneously
- array destructuring
#100DaysOfCode
#23
Installed Markdown for safe -user-generated HTML
Began working on the frontend
Created a simple live search feature
#100DaysOfCode
#22
Added a "user profile" page and template
Looked at .aggregate() method for DB lookup
1
#100DaysOfCode
#21
Added a "display single post" page and template
Added the "edit post" feature
Created a flash template for most error and success messages
#100DaysOfCode
#20
Finished the "create post feature"
looked at .use and .locals in Express
#100DaysOfCode
#19
Haven't been really diligent on tweeting progress lately, but I haven't stopped coding
Added a "create post" feature to the app I am working on
Separated the header and footer from templates
#100DaysOfCode
#18
Improved the registration process
- Added warning messages for registration errors
- Added checks for existing username and email address
Added support for Gravatar profile pictures
#100DaysOfCode
#17
Added a logout feature to the "complex app"
Added warning "flash messages" to display login errors
#100DaysOfCode
#15
Hashing Passwords
- bCryptJS
Trust and identify requests
- session data
- cookies
3
#100DaysOfCode
#14
Made the login feature check whether user details correspond to those in the DB
Promises:
- callback approach (outdated)
- then/catch approach
- async/await approach
#100DaysOfCode
#13
Keeping code organised
- MVC
- app.js - the server, listening
- router.js - directs traffic based on requests get/post
- db.js - connects to the DB
- *controller.js - calls functions
Constructor Functions (Model)
Environment Variables (Best Practice)
#100DaysOfCode
#12
Began developing the "complex app"
package.js - keeps track of all used packages
Installed expressJS - server
Installed ejs - HTML template engine
3
#100DaysOfCode
#11
Reviewed the concepts touched while building the app
ExpressJS - NodeJS
- middleware functions
- next()
- app.use(middlewareFunction)
MongoClient
- CRUD
Sanitize-html
- clean data before saving it into a DB
2
#100DaysOfCode
#10
Made the "ToDo List" items deletable
Made the app password protected
Made the app strip any code typed into the inputs
Express - next()
Pushed the app onto @heroku and linked it to my GitHub repository
#100DaysOfCode
#9
Make the ToDo list items editable
Used the JS library axios to send requests to the server (node,express) asynchronously
#100DaysOfCode
#8
Create a new DB in MongoDB
Create a new Collection within a DB
CRUD
Create a ToDo app with database
Create/write data into database
Writing into the form creates a DB entry/item
Read data from database
