Giter VIP home page Giter VIP logo

zamazom's Introduction

MERN stack (MongoDB, Express, React, Node.js) E-Commerce app with Redux Toolkit.

That was a hobby project for someone trying to learn Redux Toolkit and MERN stack deeply. I learned a lot things while doing it and had a lot of fun (LOL, actually I hate it cause of bugs). This project includes basic functionalities like storage data with Local Storage, auth with JWT, add-to-cart/favorite with Redux-Toolkit, data-fetching with RTK Query.

License

Hosted with Vercel


Demo 🚀


🗂️ Packages used in this project

Package (Frontend) Version
axios ^0.21.4
framer-motion ^6.3.16
jwt-decode ^3.1.12
moment ^2.29.1
react ^17.0.2
react-hot-toast ^2.2.0
react-lottie ^1.2.3
react-modal ^3.15.1
react-redux ^7.2.2
@reduxjs-toolkit ^4.0.5
redux-logger ^3.0.6
sass ^1.53.0
swiper ^8.0.0
Package (Backend) Version
bcrypt ^5.0.1
cors ^2.8.5
dotenv ^16.0.1
express ^4.18.1
joi ^17.6.0
jsonwebtoken ^8.5.1
mongoose ^6.4.4
nodemon ^2.0.18

🛠 Installation

  1. Clone this project via GitHub or Git, then go to folder location (frontend or backend, whichever you want)
cd client ## for frontend

#or

cd server ## for backend
  1. Install deps with Yarn:
yarn
  1. In the project directory, run the development server:
yarn start ## for frontend

nodemon ## for backend

ℹ️ Information

This project uses MongoDB Cloud as database service and JSON Web Tokens for auth.

Create .env file inside server/ and enter the necessary variables (JWT secret key and MongoDB Cloud URI)

DB_URI = mongodb+srv://<yourUsername:<yourPassword>@cluster0.u5blo2m.mongodb.net/<databaseName>?retryWrites=true&w=majority

JWT_KEY = YOUR_KEY_OR_SOMETHING

zamazom's People

Contributors

olcaneristi avatar

Stargazers

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