This is the backend for the Amazon Clone project, built using Node.js and Express.js. It complements the frontend written in React.js, deployed here. The backend handles API requests, manages environment variables, and integrates payment processing via Stripe.
- API routes to support user interactions and product management.
- Secure handling of environment variables using
dotenv
. - Cross-origin resource sharing (CORS) for frontend-backend communication.
- Integration with Stripe for handling payments.
- Node.js: Server-side runtime.
- Express.js: Lightweight framework for building API routes.
- dotenv: Manages environment variables in a
.env
file. - CORS: Enables secure cross-origin requests.
- Stripe: Provides payment processing capabilities.
Ensure you have the following installed:
-
Clone the repository:
git clone https://github.com/samuelAemro12/Amazon-Backend-Deploy cd amazon-clone-backend
-
Install dependencies:
npm install
-
Create a
.env
file in the root directory with the following variables:PORT=5000 STRIPE_SECRET_KEY=your_stripe_secret_key
-
Start the server:
npm start
The server will start on http://localhost:5000
.
Samuel Aemro Melese - https://github.com/samuelAemro12/
Samuel Aemro - samuelaemrowork12@gmail.com