Coder Social home page Coder Social logo

mern-bikeville's Introduction

bikeville | MERN

Author: Martin I. Lupa Groppelli, January 2022.

Presentational video: https://vimeo.com/686433771/d721194f42

Full-stack MERN E-Commerce. Shopping Cart managed with Redux Toolkit. List of products, product details, Contact info, Registration and Login, Search input with Dropdown Menu and Price filter. Shopping Cart, Payment area and Order summary as protected routes that can only be accesed by logged users (Use of two routers), Dashboard only accessible for Administrator. Payment with Stripe, page translation with i18n.

Repository

https://github.com/MartinLupa/bikeville-mern

How to use

Create a .env file inside api folder and replace:

MONGO_URL = database connection url
PASS_SEC = can be any string
JWT_SEC = can be any string
STRIPE_KEY = Your Stripe account public key.

Create a .env file inside client folder and replace:

REACT_APP_STRIPE_PUBLIC_KEY = Your Stripe account public key.
MAPS_KEY = Leaflet API key
REACT_APP_TOKEN = JWT Token
REACT_APP_API_USER_REGISTRATION = http://localhost:5000/api/auth/registration
REACT_APP_API_USER_LOGIN = http://localhost:5000/api/auth/login
REACT_APP_API_CATALOG = http://localhost:5000/api/products
REACT_APP_API_PAYMENT = http://localhost:5000/api/checkout/payment
REACT_APP_API_SALES_STATS = http://localhost:5000/api/orders/income
REACT_APP_API_USERS_STATS = http://localhost:5000/api/users/stats

Navigate to api and client folders and run in both:

npm install
npm start

Project info

Tested with Node v14.16.1 and npm 6.14.12.

Front-end | REACT

  • useState, useEffect, useContext. useRef.
  • Redux | Toolkit.
  • React Router v6 | Public and protected routes.
  • Use of third party APIs: Leaflet(map on Contact page).
  • Form management: Formik, Yup.
  • Use of localStorage to maintain user session and shopping cart states.
  • Libraries | Frameworks: SASS, Material UI, CSS Animate, i18next.
  • Basic SEO, useSEO.

Back-end | NODE, EXPRESS, MONGO, MONGOOSE

  • REST API made with Node and Express | Full CRUD.
  • Payment via Stripe.
  • Authentification/verification: Crypto JS, JWT.
  • MongoDB, Mongoose.

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.