GithubHelp home page GithubHelp logo

fake_news's Introduction

Fake_news

How to use

Download the repository and run index.php on a PHP-server.

About

Appen hämtar data från en live databas på heroku. Ett CMS för att editera den databasen är inte skapat ännu. Korten renderas dynamiskt baserat på datan i databasen. Författare, content, datum, likes och färg hämtas därifrån. (Färger som kan användas är röd, blå och grön). Tanken är att korten ska kunna expanderas med detta är inte implementerat ännu. Korten är uppbyggda i CSS-grid och går mellan en till tre kolumner baserat på bredd.

Koden är uppdelad i komponenterna header, main och footer. Kort-logiken sker i main.php. variabeln $data importeras från server-connection.php

Funktion för like-knapp och spara-knapp är inte implementerat ännu.

Code Review

Review (Martin):

  1. Love the thought of functionality to save the articles for i'm assuming reading later on the site. Nice touch for articles which im just quickly skimming through now but would like to deep dive later on when i have more time.
  2. The way of hiding the cards with a div with a transparent gradient looks super clean.
  3. First card is not properly aligned with the rest of the cards on desktop view or tablet. (Resolved)
  4. Some parts of the text is showing beneath the div hiding the content. (Resolved)
  5. Have left ?> showing on the bottom of the page beneath all the cards. (Resolved)
  6. As for php, nicely broken down into reusable components such as header, footer etc
  7. Prob don't want to expose password string in expert_author publicly on github, but rather place it in an .env file. (Resolved?)
  8. Don't know if posts are sorted or not as they're all the same date. (Resolved)
  9. body.php is highly readable, very easy to understand so seems like something easy to maintain so big + there, also nice touch of being able to set corresponding color in database.
  10. Can't find a functions.php file so not much to comment on regarding functions made in php. I guess a case could be made for server-connection.php as it has a defined function, code looks good and types have been declared, should include strict_types to enable typesafety.

fake_news's People

Contributors

hugocsundberg avatar alegherix avatar

Watchers

 avatar

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.