Skip to content

4human-org/murphy-ecommerce-backend

Repository files navigation

Murphy E-commerce Backend

This repository contains the backend server for an e-commerce application built with Express.js and Firestore.

Getting Started

Prerequisites

  • Node.js
  • npm or yarn
  • Firebase account

Installation

  1. Clone the repository:
git clone https://github.com/4human-org/murphy-ecommerce-backend.git
  1. Navigate to the project directory:
cd ecommerce-backend
  1. Install dependencies:
npm install
  1. Set up your Firebase Firestore:
  • Go to the Firebase Console
  • Create a new project or use an existing one
  • Navigate to Project settings > Service accounts
  • Generate a new private key and download the JSON file

Service Account Key Location

  1. Create a .env file in the root of the project directory and add the following environment variables from your firebase service account keys:
FIREBASE_PROJECT_ID=murphy-development
FIREBASE_PRIVATE_KEY=  # Insert your private key here
FIREBASE_CLIENT_EMAIL= # Insert your client email here
  1. Make sure the Firestore database is configured correctly.

Running the Server

Start the server with the following command:

nodemon app.mjs

About

Backend Repo for the Murphy E-Commerce App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published