Skip to content

Latest commit

 

History

History
155 lines (90 loc) · 5.49 KB

README.md

File metadata and controls

155 lines (90 loc) · 5.49 KB

E-Commerce Website Using MERN Stack

E-Commerce Website Using MERN Stack.
MERN 스택으로 구축된 이-커머스 SPA(싱글 페이지 어플리케이션) 입니다.

Front End design Using Bootstrap 5 and Custom CSS.
프론트엔드 디자인은 Bootstrap 5와 Custom CSS가 사용되었습니다.

Front End routing using React Router Dom and http communication between front and back using REST API.
프론트엔드 라우팅은 React Router Dom 그리고 프론트엔드와 벡엔드의 데이터 통신 방식은 REST API를 사용하였습니다.

State Management Using Redux and Redux Thunk.
프론트엔드의 상태 관리 매니지먼트는 Redux and Redux Thunk를 이용하였습니다.

Tech Stack

  • React.js
  • Node.js
  • Express.js
  • Redux
  • Mongo DB Atlas
  • Bootstrap 5
  • React Router Dom
  • JWT for Authorization (유저 인가)

Below is the screen Image for this project.
아래는 프로젝트의 간략한 이미지입니다.

Desktop

Screen for desktop resolution.

Home

Alt text

women shop section

Alt text

Product

Alt text

User List

Alt text

Mobile (Resolution for iPhone X)

Home

Alt text

Product & Half of Footer

Alt text

women shop section & category overflow scroll

Alt text

mobile sidebar

Alt text

How to setup

  1. 루트 폴더와 frontend 폴더 각각에서 다음 명령어를 실행한다. npm install
  2. 루트 폴더 밑에 .env 파일을 만들고 자신의 secret value 를 기입한다.
JWT_SECRET=your_secret_goes_here
PAYPAL_CLIENT_ID=your_secret_goes_here
MONGODB_URL=your_secret_goes_here
  1. 루트폴더에서 npm start로 node js 서버를 구동한다. (localhost:5000)
  2. frontend 폴더로 가서 npm start로 react js 서버를 구동한다. (localhost:3000)

Demo

Link : https://whispering-cove-62911.herokuapp.com/

Getting Started with Create React App

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

yarn eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

yarn build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify