Day 64: Members Only Project Outlining

Working on the final project in the web security section of the Node.js course from The Odin Project. My planning and outlining skills are improving! I wrote out my plan and then was able to accurately build out the app’s skeleton. The skeleton included the database models, the controllers, the views, and the routes. Now I just need to build out each of the features one by one. I should be able to finish it all tomorrow. If I am right then that would mean my estimation game may be improving as well LOL.

TLDR;

Okay, so here are the highlights of what I did:

  • Backend -> Started working on the Members Only Project from the web security project. So far so good. Using the mechanical keyboard with vim for project work is so much fun. It feels like I am movie hacker or something LOL.

Project Outline (Members Only Project)

Requirements (Features):

The app must have:

  • The homepage displays all the messages
  • Existing users can log in
  • New users can sign up and then log in
  • Users can post new messages (If they are logged in already – Page only accessible by registered users)
  • Users can enter code to get membership status
  • Users can become admins through … ?
  • Displayed messages include additional features and options based on user status (i.e. membership options, admin options)

Plans

Models In Database:

Message:
---------
Fields:
  - Title
  - Text
  - Timestamp
  - Author (i.e. User who wrote the message)

User:
-----
Fields:
  - Username
  - Password
  - First Name
  - Last Name
  - Membership Status
  - Admin Status

Routes

Application:
---------

Homepage ('/')
- GET

Sign Up ('/sign-up')
- GET
- POST

Log In ('/login')
- GET
- POST

Membership ('/membership')
- GET
- POST

Admin ('/admin')
- GET
- POST

Add Message ('/add-message') -> Only accessible for logged in users
- GET (AUTH REQUIRED FOR ACCESS)
- POST (AUTH REQUIRED FOR ACCESS)


Tasks

  • [x] Build out rough plan for project
  • [x] Build skeleton for project structure:
    • [x] routes
    • [x] models
    • [x] views
    • [x] controllers
  • [ ] Build and test basic express app
  • [ ]
  • [ ]
  • [ ]

Meta Data

Started On: 2022-08-27

References:

Reference Projects:


Goal For Round 8 of the #100DaysofCode Challenge

This is my eighth round of the “#100daysofcode” challenge. I will be continuing my work from round five, six, and seven into round eight. I was working through the book “Cracking the Coding Interview” by Gayle Laakmann McDowell. My goal was to become more familiar with algorithms and data structures. This goal was derived from my goal to better understand operating systems and key programs that I use in the terminal regularly e.g. Git. This goal was in turn derived from my desire to better understand the fundamental tools used for coding outside of popular GUIs. This in turn was derived from my desire to be a better back-end developer.

I am currently putting a pause on the algorithm work to build some backend/full stack projects. I primarily want to improve my skills with the back-end from an implementation perspective. I have improved tremendously in terminal and CLI skills but I lost focus due to how abstract the algorithm concepts got. I wanted to work on things that were more tangible until I can get to a position where I could directly benefit from improving my algorithm skills and theoretical knowledge. So that’s the focus right now. Build my backend skills and prove my full stack capabilities by building some dope projects.

Again, I still have no idea if my path is correct but I am walking down this road anyways. Worst case scenario I learn a whole bunch of stuff that will help me out on my own personal projects. Best case scenario I actually become one of those unicorn developers that go on to start a billion dollar company… You never know LOL.