This is a full-stack e-commerce application built with the MERN stack (MongoDB, Express, React, Node.js).
- User authentication and authorization (JWT)
- Product search and filtering (by category, price, rating)
- Instant search suggestions
- Shopping cart
- Checkout process with Stripe integration
- User profiles
- Admin dashboard to manage users, products, and orders
- Node.js
- Express
- MongoDB
- Mongoose
- JWT (JSON Web Tokens)
- Stripe
- React
- Redux
- React Router
- Axios
- Bootstrap
- Node.js and npm
- MongoDB
-
Navigate to the
backenddirectory:cd backend -
Install the dependencies:
npm install
-
Create a
.envfile by copying the.env.examplefile:cp .env.example .env
-
Fill in the environment variables in the
.envfile:MONGO_URI: Your MongoDB connection string.JWT_SECRET: A secret key for JWT.STRIPE_SECRET_KEY: Your Stripe secret key.
-
Start the backend server:
npm start
-
Navigate to the
frontenddirectory:cd frontend -
Install the dependencies:
npm install
-
Create a
.envfile by copying the.env.examplefile:cp .env.example .env
-
Fill in the environment variables in the
.envfile:REACT_APP_STRIPE_PUBLIC_KEY: Your Stripe public key.
-
Start the frontend development server:
npm start
Bu, MERN yığını (MongoDB, Express, React, Node.js) ile oluşturulmuş tam donanımlı bir e-ticaret uygulamasıdır.
- Kullanıcı kimlik doğrulaması ve yetkilendirme (JWT)
- Ürün arama ve filtreleme (kategoriye, fiyata, puana göre)
- Anlık arama önerileri
- Alışveriş sepeti
- Stripe entegrasyonu ile ödeme süreci
- Kullanıcı profilleri
- Kullanıcıları, ürünleri ve siparişleri yönetmek için yönetici paneli
- Node.js
- Express
- MongoDB
- Mongoose
- JWT (JSON Web Tokens)
- Stripe
- React
- Redux
- React Router
- Axios
- Bootstrap
- Node.js ve npm
- MongoDB
-
backenddizinine gidin:cd backend -
Bağımlılıkları yükleyin:
npm install
-
.env.exampledosyasını kopyalayarak bir.envdosyası oluşturun:cp .env.example .env
-
.envdosyasındaki ortam değişkenlerini doldurun:MONGO_URI: MongoDB bağlantı dizginiz.JWT_SECRET: JWT için gizli bir anahtar.STRIPE_SECRET_KEY: Stripe gizli anahtarınız.
-
Backend sunucusunu başlatın:
npm start
-
frontenddizinine gidin:cd frontend -
Bağımlılıkları yükleyin:
npm install
-
.env.exampledosyasını kopyalayarak bir.envdosyası oluşturun:cp .env.example .env
-
.envdosyasındaki ortam değişkenlerini doldurun:REACT_APP_STRIPE_PUBLIC_KEY: Stripe genel anahtarınız.
-
Frontend geliştirme sunucusunu başlatın:
npm start