Giter Site home page Giter Site logo

shanibider / anastacia-ecommerce Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 26.99 MB

Full-Stack E-commerce website.

Home Page: https://anastacia-mern-ecommerce-website.onrender.com/

JavaScript 97.27% HTML 0.98% CSS 1.75%
react mongodb nodejs firebase

anastacia-ecommerce's Introduction

Comprehensive MERN E-commerce React Website πŸ–₯πŸ‘œ

A comprehensive feature-rich e-commerce website developed as a server-client React application, powered by the:

MERN (MongoDB, Express.js, React.js, Node.js) stack. πŸ’Ό

My server-client React application leverages a comprehensive stack of JavaScript, HTML, and CSS technologies
to deliver a seamless user experience. Following established React application structures, including routing, state management, and component-based architecture, ensures scalability and maintainability. Emphasizing responsive design, the application guarantees optimal display across diverse devices.

With Firebase powering our secure user authentication mechanism, data confidentiality is maintained through HTTP/S protocols. Moreover, our robust backend comprises a blend of Firebase databaseπŸ” and MongoDB , ensuring efficient data storage and management. Integration with the API facilitates secure transactions, providing users with a seamless shopping experience.

Technologies Used πŸ†

My Skills

MERN Stack:

  • MongoDB for efficient data storage.
  • Express.js for robust server-side development.
  • React.js for interactive and dynamic user interfaces.
  • Node.js for scalable and efficient server-side execution.

Firebase:

  • Utilized for secure user authentication and real-time database functionalities.

HTTP/S protocols:

  • Axios
  • AJAX
  • Fetch API

PayPal API:

  • Integrated for secure and reliable payment processing.

HTML, CSS, JavaScript:

  • Fundamentals of frontend development, ensuring a polished user experience.

Responsive Design Principles:

  • Implemented to ensure seamless viewing experiences across various devices.

Integration between frontend and backend πŸ“€πŸ“₯ -

Frontend (React) and backend (Node.js) integration in a MERN stack application involves the frontend making HTTP requests to specific API endpoints defined in the backend routes. These endpoints are implemented in the backend to handle incoming requests, interact with the database, and return appropriate responses to the frontend. This allows for seamless communication between the frontend and backend components, enabling the development of dynamic and interactive web applications.


Full-stack development πŸ…

This project demonstrates proficiency in full-stack development, including frontend UI/UX design, backend API development, database management, and integration with external services. It showcases the ability to work with a diverse set of technologies and libraries to build a scalable and robust web application.


Key Features 🎯

  • Home Page:

    • Lists products to browse and explore.
  • Detailed Product View:

    • Provides in-depth information about a selected product.
  • Product Categories:

    • Categorizes products for easy navigation.
  • Shopping Cart:

    • Allows users to add and manage items in their cart.
  • Order Processing with PayPal:

    • Securely handles payment processing using the PayPal API for demo purposes.
  • Secure User Registration and Login:

    • Ensures a safe and secure user authentication system.
  • Admin Functionalities:

    • Manages 'Products' and 'Orders' lists
    • Features a dashboard displaying real-time metrics: registered users, order count, and financial performance through total money orders.
    • Enables the creation, editing, and deletion of products.
  • User Functionalities:

    • Accesses order history.
    • Edits user profile.
  • About The Team Page:

    • Provides information about the development team.

The application follows these key patterns πŸ† -

THe architecture focuses on structured state management, components, and effective handling of side effects and navigation in a React app.

  1. πŸš€State Management:

    • Uses useReducer for organized state management.
  2. πŸš€Global State:

    • Manages global state for properties like cart, userInfo, loading, and error.
  3. πŸš€Side Effects:

    • Handles side effects, such as data fetching, with useEffect.
  4. πŸš€Component Structure:

    • Organizes the app into modular components, promoting a component-based architecture.
  5. πŸš€React Router:

    • Implements React Router for navigation.
  6. πŸš€Conditional Rendering:

    • Conditionally displays UI elements based on the application's state.
  7. πŸš€Authentication Handling:

    • Manages user authentication through global state.
  8. πŸš€Middleware (logger):

    • Uses a middleware function (logger) for state change logging.
  9. πŸš€RESTful API Calls:

    • Utilizes Axios for making API calls to a backend server.

Ecommerce Website Preview :

Demo Website

πŸ‘‰ Demo :

React.demo.mp4
Home Page

home

Product out of stock alert

out of stock alert

Detailed Product View

product

Shopping Cart

cart

Preview order

place order


Place an order via PayPal API:

Place order

place order paypal

Checkout steps - shipping

shipping

Checkout steps - payment method

payment method

Place an order with demo user via PayPal

place order paypal  demo 2

Paid order

place order paypal  demo 3


User functionality:

User order history

order history

User edit profile

edit profile


Admin functionality:

Admin dashboard displaying real-time metrics: registered users, order count, and financial performance through total money orders

Admin info

Products list

proudcts list

Edit product

edit product

All users orders list

orders list


Search bar

search

about us page

about us

about us2

Spinner Component showing the loading state

loadingBox component


Setup Instructions

  1. Clone the repository: git clone [repository_url]
  2. Set up the MongoDB database and Firebase authentication.
  3. Configure environment variables.
  4. Run Backend-
$ cd our-website
$ cd backend
$ npm i
$ npm start
  1. Run Frontend-

open new terminal

$ cd our-website
$ cd frontend
$ npm i
$ npm start

Seed Users and Products (backend)- Run this on browser: http://localhost:5000/api/seed (Will returns admin email, password and sample products).

Admin Login- Run http://localhost:3000/signin


πŸ”— Connect with me πŸ‘©β€πŸ’»πŸ˜Š

linkedin portfolio gmail

Copyright Β© Shani Bider, 2023

License

This project is licensed under the MIT License.

anastacia-ecommerce's People

Contributors

rafaelnavon avatar shanibider avatar shirabalali avatar tazmaniakre 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.