Giter VIP home page Giter VIP logo

havanas's Introduction

havanas logo

Quick Start

Application live at

http://ec2-3-101-37-166.us-west-1.compute.amazonaws.com/

To run locally

Clone repo

From the root directory

  • npm install

From the client directory

  • npm install
Before starting the app
  • Create a config folder in the root directory
  • Add a default.json file in config folder
  • Create a free MongoDb atlas account and get aDbUrl
  • Add {"mongoURI": {{mongoDbURI}}}indefault.jsonfile.
  • e.g{"mongoURI": "mongdb+srv://some-url-from-mongo-site"}
Starting the app

From the root directory

  • npm run dev

Notes

So much more I wanted to add as this was super fun!

Some minor notes:

  • I decided to incorporate Redux for state management. This is prob overkill for an app this size however, I felt it would give large performance gains and would make things easier to scale if more items/products need to be added.

  • I used MongoDb instead of Postgres. My reasoning was ease of use and MongoDb Atlas' free tier cloud option. If I had more time I would have preferred to use Postgres as it commands much faster performance.

  • Things I wanted to add but could not for the sake of time

    • Full sign in/register functionality
    • Refactor of UI with a library like Material UI or Bootstrap
    • Explore using Shopify as a backend instead of Node/express
      • Analyze cost of service vs developer time ratio
    • Explore refactoring to PWA or using React Native for a rich mobile experience.

Some minor bugs: If you refresh the cart on the deployed app it will throw an error however, the cart data does persist via js-cookie. When the app is running on a local machine it works correctly.

Google Page Speeds for Desktop: 99 Google Page Speeds for Mobile: 83

havanas's People

Contributors

galadev avatar

Watchers

 avatar  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.