Skip to content

joystacktrek/amazon-clone

Repository files navigation

Amazone Clone

A sample React Project presented during lecture


Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Lecture Notes
  6. License

About The Project

Product Name Screen Shot

The Amazon Clone project is a web application developed as a sample project for lectures aimed at DICT (Department of Information and Communications Technology) Scholars. This project serves as a practical demonstration of building a fully functional e-commerce platform using ReactJS, a popular JavaScript library for building user interfaces.

The main objective of this project is to provide DICT Scholars with hands-on experience in developing a real-world application using modern web development technologies. By replicating the core features and functionalities of the Amazon website, participants will gain a deeper understanding of the ReactJS framework, component-based architecture, and state management concepts.

(back to top)

Built With

  • React
  • TailwindCSS

(back to top)

Getting Started

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

🚧 Prerequisites

Check if nodejs is installed

node -v
npm -v

🛠️ Installation

Below is an example of how you can instruct your audience on installing and setting up your app. This template doesn't rely on any external dependencies or services.

  1. Fork the repo
  2. Clone the repo
    git clone https://github.com/your_username_/amazon-clone.git
  3. Install NPM packages
    npm install
  4. Run
    npm run dev

(back to top)

Roadmap

  • Main Page
  • Created components
  • Display data using JSON Data
  • Able to pass values using props
  • Hooks and States
  • Routing

(back to top)

Lecture Notes

JSX

JSX attribute - className

In JSX, you can’t use the word class! You have to use className instead. This is because JSX gets translated into JavaScript, and class is a reserved word in JavaScript.

When JSX is rendered, JSX className attributes are automatically rendered as class attributes.

JSX conditionals

JSX does not support if/else syntax in embedded JavaScript. There are three ways to express conditionals for use with JSX elements:
  • a ternary within curly braces in JSX
  • an if statement outside a JSX element, or
  • the && operator.

Embedding JavaScript code in JSX

Any text between JSX tags will be read as text content, not as JavaScript. In order for the text to be read as JavaScript, the code must be embedded between curly braces { }.
  • syntax and attributes
  • self-closing
  • multiline
  • nested
  • event listener
  • .map
  • key attribute

React Components

  • return
  • function
  • import and export
  • capitalization

Interacting Components

  • props
  • destructuring

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

📝 Helpful Links

(back to top)

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •