4human-org / murphy-ecommerce-backend

Backend Repo for the Murphy E-Commerce App
2 stars 1 forks source link

Murphy E-commerce Backend

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

Getting Started

Prerequisites

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:

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