Giter VIP home page Giter VIP logo

modern-ecommerce's Introduction

Elecshop - eCommerce app w/ Next.js, Nest.js and MongoDB

Elecshop preview image

The Challenge ⚡️

I wanted to build another eCommerce website using newer technologies than my previous eCommerce project, where I used Firebase to store data and Redux for state management.

I went with a client-server approach, and this time I mixed two frameworks for the first time, which were Next.js and Nest.js.

This project was very fun to build, as I encountred multiple challenges on how to coordinate between a fast, secure, and strictly-typed Nest.js API; and a Next.js app based on client-side fetching.

Here was the challenge:

  • Server-side full-featured shopping cart from scratch.
  • Storing product reviews and ratings for every customer.
  • Adding pagination & searching features for products.
  • User account management & saving product orders.
  • Admin profile & product management.
  • Fast checkout process (shipping, payment method, etc).

Built With ✨

  • Nest.js - node.js framework
  • React Bootstrap - UI library
  • Redux - State management library
  • JWT - tokens for authentication
  • Next.js - react.js framework
  • MongoDB - Document database
  • Typescript

Running Locally 🖥️

Clone the project

git clone https://github.com/NightClover-code/modern-ecommerce.git

Go to the project directory

cd modern-ecommerce

Remove remote origin

git remote remove origin

Install dependencies - Client

yarn install

Install dependencies - Server

yarn install

Add Environment Variables - Client

Click to expand!
  • NEXT_PUBLIC_PAYPAL_CLIENT_ID

Add Environment Variables - Server

Click to expand!
  • MONGODB_PASSWORD
  • MONGODB_DATABASE_NAME
  • JWT_SECRET
  • MONGODB_URL
  • SESSION_KEY
  • CLIENT_URL
  • CLOUDINARY_API_KEY
  • CLOUDINARY_API_SECRET
  • CLOUDINARY_NAME

Start the server

yarn start:dev

Start the client

yarn dev

Deployment 🚀

Inspiration & credits ☄️

Author

Thanks for sharing 🚀

modern-ecommerce's People

Contributors

nightclover-code avatar

Stargazers

Alejandro Oliva avatar  avatar Brian Riant avatar Hashibul avatar yasser  laroussi avatar Nguyen Tran Gia Bao avatar Javier1234559 avatar JustiS avatar  avatar Pronajit Dey avatar Ibrahim Gaber avatar Malek Ben Ammar avatar  avatar Ramziddin avatar Harshit Shrivastav avatar  avatar Maulana Akbar Yudistika avatar Levi alkali damat avatar  avatar Omar Ahmed Owais avatar Nick Shilov avatar Zahidul Islam avatar Eliot avatar  avatar Abdul Hanan avatar Nam Nguyen avatar Ngok avatar  avatar  avatar John Tarus avatar Md. Shaiful Islam avatar Mark Pinero avatar Mfonobong John Ekott avatar Dawutmuhammet Begmedow avatar  avatar Mike Gratton avatar Karthik Raju avatar  avatar Stas Uzunov avatar IamThiago-IT avatar Jake Kwak avatar

Watchers

Dip Sagun Gurung avatar  avatar

modern-ecommerce's Issues

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.