Coder Social home page Coder Social logo

turing-react-test's Introduction

SHOPMATE

front-end of an e-commerce system which allows users to search, add items to their shopping cart, create orders, and checkout successfully.

Create evv

  • ROOT_ENDPOINT=
  • IMAGE_DIRECTORY=

Setup Locally

  • clone repo
  • npm install or yarn install - Install all the dependencies
  • yarn build - Run Next.js Build
  • yarn dev or npm dev
  • yarn test to run test Runs the app in the development mode.
    Open http://localhost:3000 to view it in the browser.

Folder Structure

All the components are located in src/Components. Each component is placed in its own folder (e.g Home folder for Home component). All Routes are located in src/pages. helper utility methods in src/helpers.

All API endpoints are located in src/services

Each file exports ONLY ONE component.
CamelCase is the primary naming convention for methods while underscores are used for data (variables) retrieved from the server.

Learn More (Packages)

NEXT.JS

Web Framework

Bootstrap & SCSS

Used for presentation of the frontend

REDUX $ REDUX SAGA

Used for state management

HELMET

Helmet helps you secure your Express.js apps by setting various HTTP headers. It's not a silver bullet, but it can help!

SUPERAGENT

Handeling Requests

React Stripe Checkout

See here for more information.
This package provides a "Checkout" implementation of stripe. Another options for stripe implementation was stripe elements. The package requires just a public key (PK), and a callback function that accepts the token generated by the card.

Card Details for Payment

Card No: 4242424242424242
CVV: 123
Date: 12/23

Moment

See here for more information.
This package is used to convert UNIX timestamps returned by the server to relative time (** mins ago).It is also used to format UNIX times to specific formats (DD/MM/YYYY etc)

React Router Dom

See here for more information.
Used primarily for app navigation.

Learn More (APIs)

Turing APIs

See here for all API endpoints.

Local Storage (Offline first approach)

Local storage was used to store persistent data throughout the life cycle of the application. Design choices were made in favor of local storage over accessing the endpoints when possible.

turing-react-test's People

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.