Coder Social home page Coder Social logo

ecommerce-react's Introduction

๐Ÿ“š Bookstore App

A simple project of bookstore application. Live demo here โžก๏ธ: Bookstore App

Techstack

Client side:

  • React (Create react app)
  • Axios
  • Formik
  • Yup
  • Swiper

Server side:

  • Nodejs (v18.*)
  • Express
  • MongoDB
  • Cloudinary
  • JWT
  • Nodemailer

โฌ† back to top

๐Ÿค– Functions

โš™๏ธ Admin Role

  • Change password and account detail (current admin account).
  • Manage books (create, modify, delete).
  • Manage users (create, modify, delete).
  • Delete user's comments (create, modify, delete).

๐Ÿ™ User Role

  • Change password
  • Change account detail (avatar, email, username, ...).
  • Rating and comment on book (can delete).
  • Add book to wishlist.
  • Add book to cart.

๐ŸŸฐ Common

  • Sign up, login
  • Search book by name.
  • Skeleton loading.
  • Scroll to top button.

โฌ† back to top

How to get started

  1. Create .env file in server directory
  2. Input mandatory information includes:
Variable Name Description
NODE_ENV Production or development
PORT Running port
DATABASE Database connection string. Replace password with <PASSWORD> string
DATABASE_PASSWORD Database connection password
JWT_SECRET JWT secret
JWT_EXPIRES_IN JWT expiration time
JWT_COOKIE_EXPIRES_IN Cookie expiration time
CORS_DOMAIN Allowed cross-origin domain
EMAIL_HOST Nodemailer host option
EMAIL_PORT Nodemailer port
EMAIL_USERNAME Nodemailer credential
EMAIL_PASSWORD Nodemailer credential
EMAIL_FROM Nodemailer mail send from
CLOUD_NAME Cloudinary credential
API_KEY Cloudinary credential
API_SECRET Cloudinary credential
  1. From root directory, run in terminal:
cd server/
npm start
  1. From root directory, run in terminal:
cd client/
npm start

โฌ† back to top

ecommerce-react's People

Contributors

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