The day is not over, so I decided to keep planning on the web application.
I thought of a feature to add – Search Autocomplete. Yes I know, keep it simple. I promise, I would not add any other feature before the first publishing okay!.
Now let us talk about what we should see in the HTML page – <input> for searching, <p class=”autocomplete”> for autocomplete data, <div class=”content”> you guessed it, content area. It is going to be a single page application, which means a lot of async requests with JS. There are two ain functions JavaScript has in this application, 1) The guy that handles the view 2) The guy that sends and gets data to PHP/MYSQL (controller).
Let us speak on the storyline of the web app:
- User loads lexpression.ajalacomfort.com
- User types in expression
- User sees autocomplete data -> expression suggestion list
- User presses return or the send button
- Or clicks one of the autocomplete suggestions
- Loading image shows while the data is being requested
- User gets list of match expressions and their corresponding translations
- User likes a translation, presses upvote
- User does not like a translation, presses downvote
- User adds a translation
- CAPTCHA
- User adds an expression
- User leaves the site
List of Events
- <input> change : while typing
- <input type=”submit”>: send expression (either in search box, add expression or translation box)
- <p class=”autocomplete-data”><a href=”~”> click : selection of autocomplete data
- <spam class=”vote”> click: upvotes or downvotes
List of Views
- Input Box
- Search Box
- Add Translation Box
- Add Expression Box
- Button
- Submit Expression
- Submit Translation
- Search
- Upvote
- Downvote
- Content
- Expression
- List
- Languages
- Translations
- Pagination (optional)
List of Requests
- Get / Post Expression
- Get / Post Translation
- Post Upvote / Downvote
Development Process (roughly)
- HTML
- React js /Backbone View and Controller
- CSS/Sass Styling
- PHP and MYSQL Setup
- API
- Security
- Go Online
I may end up using React or Backbone for the View and Controller and Sass for CSS
Watch for my streaming on Youtube – Ajala Comfort