Skip to content

dgattoni/podd-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pie of The Day App

Dependencies

  • node v8.8.0
  • npm v5.4.2
  • yarn v1.3.2

Install and Running

ENV vars

  1. Create a .env file at the root level.
  2. Set an environment variable NODE_PATH=src/

Development

  1. yarn install
  2. yarn start
  3. navigate to http://localhost:3000 in your browser of choice.

Tests

  1. yarn test
  2. in your terminal Press a to run all tests.

Tools and libraries

  1. SCSS preprocessor: Sass 3 introduces a new syntax known as SCSS which is fully compatible with the syntax of CSS. The following benefits improves the UI styling and future maintenance on this project:
  • Nested syntax
  • Ability to define variables
  • Ability to define mixins
  • Mathematical functions
  • Operational functions (such as “lighten” and “darken”)
  1. Redux:
  1. Create-React-App on its version with eject:
  • This project was bootstrapped with Create React App.
  • I decided to yarn eject this boilerplate in order to have more control on webpack configuration such as plugin enhancements for SCSS preprocessor.
  1. Fonts/SVG:
  1. Grid system / Responsive:
  • CSS Grid Layout is a CSS layout method that is native to CSS, designed for the two-dimensional layout of items on a webpage or application.
  • Flexbox is the commonly-used name for the CSS Flexible Box Layout Module, a layout model for displaying items in a single dimension, as a row or as a column.
  • I used Grid Layout because it gives us a method of creating grid structures that are described in CSS and not in HTML. It helps us to create layouts that can be redefined using Media Queries and adapt to different contexts.
  • I also decided to use Flexbox since it is native to CSS, and easier to integrate and implement for responsive layouts.
  • documentation Grid Layout: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout
  • documentation Flexbox: https://developer.mozilla.org/en-US/docs/Glossary/Flexbox

Todo:

  1. Add optional Feature: Search against the pie name (enhancement)
  2. Add Typechecking With PropTypes (enhancement)
  3. Refactoring Grid as high-order-component to be reused on displaying Stores and Pies entities (enhancement)
  4. Refactoring for better handling on API error responses (enhancement)

About

Pie of The Day

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors