Skip to content

This is the back-end code for the amazon-clone(hosted on netlify) and the backend is hosted on Render

Notifications You must be signed in to change notification settings

samuelAemro12/Amazon-Backend-Deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amazon Clone Backend

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.

Features

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

Technologies Used

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

Getting Started

Prerequisites

Ensure you have the following installed:

  • Node.js (version 16 or later)
  • npm (comes with Node.js)

Installation

  1. Clone the repository:

    git clone https://github.com/samuelAemro12/Amazon-Backend-Deploy
    cd amazon-clone-backend
  2. Install dependencies:

    npm install
  3. Create a .env file in the root directory with the following variables:

    PORT=5000
    STRIPE_SECRET_KEY=your_stripe_secret_key
  4. Start the server:

    npm start

The server will start on http://localhost:5000.

Author:

Samuel Aemro Melese - https://github.com/samuelAemro12/

Contact:

Samuel Aemro - samuelaemrowork12@gmail.com

About

This is the back-end code for the amazon-clone(hosted on netlify) and the backend is hosted on Render

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published