GithubHelp home page GithubHelp logo

bgip's People

Contributors

emaggy avatar gminova avatar laleonie avatar reubengt avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

bgip's Issues

Bypassing your client side validation

dons hacker hat
puts on troll sunglasses

I was able to delete the required attributes from the form input fields and submit an empty form. Server side validation wasn't a priority for this week, so it's absolutely ok not to have it, just thought I'd point it out, as it's easy to overlook in future weeks' projects :)

Screen Shot 2019-08-23 at 12 37 34

Tests

Nice tests that still pass, one folder - tests.js is empty.

other ways to see quotes

Currently, you can only see quotes in a given category. It would be nice to see a list of all the quotes.

Other stretch ideas.

  • Quotes arranged by date
  • Search for a quote (by author or tag or words in the quote)
  • Show a quote of the day when you open the app.

You might like this extension for chrome that rips the feed out of your facebook and instead just shows an inspirational quote. It's open-source so you can look at the code and their list of quotes =]

https://github.com/jordwest/news-feed-eradicator

Search

Is the search button do something?

88 on Accessibility

88 on accessibility - the messages aren't very helpful but I image just increasing the font will help that 👍

Screenshot 2019-08-23 at 10 32 01

handle no results

If I search for a category that doesn't exist I just get a page with no content in it.
You can have an IF statement to render a different partial that says there is no results or something and suggest you to add a quote or search for something else.

image

script.js

Do you need the promise in this?

if (selectDropDown) {
  const category = selectDropDown.value;
  document.querySelector("#categoryButton").addEventListener("click", e => {
    e.preventDefault();
    fetch(`/quotes/searchcategory/${category}`).then(response =>
    );
  });
}

It looks like it's just console logging, i tried deleting it and everything looks like it's still working

Design - font

I have to say it ;) well done! It's simple and harmonious. Good choice of font for the Quicksand ;)

Duplicate CSS

You have duplicate code for the body and footer tags in stylehome.css and styleQuotes.css.

Nice file structure

You've done really well to adjust to the 'model-view-controller' file structure for this week's project, I know it can be confusing at times. Good job!

slow nod

Congrats

Nice design, cool idea, lovely stuff!

otter

Redundant redirect in controllers/index.js

On lines 12-14 of this file you’re handling the endpoints for when a user searches for a quote category. I could be mistaken, but isn’t line 17 doing pretty much the same thing, minus the redirect?

In your script.js file (public/js/script.js), instead of making the fetch request to "/quotes/searchcategory/${category}", perhaps you could make it to "/quotes/category/:category” and eliminate the redirect?

404

I love this page haha 👍

Search Button

I can't use the search form and button to get a list of quotes for a different topic.

Awesome project!

Well done, I love the project, now I finally have a place to share pearls of wisdom I come across!

It looks like you set sensible goals and stretch targets for yourself. And, it's awesome to see evidence of such thorough planning in your readme.

a team quote

Tidy up

Still some console logs knocking around

abstract form components

In the form.hbs the category selector is repeated twice. this element could be a partial that you re-use e.g. categorySelector.hbs
(I'm not sure if you can abstract the whole select component or perhaps just the options it has but can try it out)

Also I think this file could be turned into two separate forms as it is one form for creating a quote and one form for searching them but they are in the same file. (the second form currently doesn't work and might be easier to implement if you turn it into it's own form)

<form class="quote-form" autocomplete="off" action="/submitquote" method="post">
    <label for="category">Category</label>
    <select class="category" name="category" id="category" required>
      <option value="food">Food</option>
      <option value="meetups">Meet-ups</option>
      <option value="movies">Movies</option>
      <option value="coding">Coding</option>
      <option value="random">Random</option>
    </select>
    <br>
    <label for="quote"> Quote</label>
    <textarea type="text" name="quote" class="quote" id="quote" required></textarea>
    <br>
    <label for="author"> Author</label>
    <input type="text" name="author" class="author" id="author" required>
    <br>
    <label for="keyword"> Keyword</label>
    <input type="text" name="keyword" class="keyword" id="keyword" required>
    <br>
    <input type="submit" value="Submit" class="submit_button">
</form>
<label> Search By Category
    <select class="category" name="category" id="categorySearch" required>
      <option value="food">Food</option>
      <option value="meetups">Meet-ups</option>
      <option value="movies">Movies</option>
      <option value="coding">Coding</option>
      <option value="random">Random</option>
    </select>
    <input type="button" id="categoryButton" value="Search" />
</label>

Database tests

Great job writing route tests! If you have time to add some db tests, you might want to create a separate db_build_test.sql build script to run them from. You can add drop and create tables to your heart's content without losing all the pearls of wisdom from your production db.

Image logo

You have an image logo that we can't see. If you don't use it, it might be interesting to take it out as it lower your pourcentage of accessibility (no inside)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.