Skip to content

A backend e-commerce application with real-world functionalities.

Notifications You must be signed in to change notification settings

fomativeh/foma-commerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

foma-commerce is an e-commerce backend application written in javascript, with real-world features that power common e-commerce services today. It is built with express.js and uses a mongodb database.

Features

  • Sign-up and login
  • Authentication
  • Authorization
  • Role-based resource access
  • Protected routes
  • Product creation
  • Cart Feature
  • Wishlist feature
  • Vendor account creation
  • Order creation
  • Product reviews
  • Admin account / Admin rights

Usage

Clone the repository, then open the project folder.
Open your terminal and run the command below to install the project's dependencies:

npm install

API routes and operations

Database and Media Storage

  • Firstly, create a mongodb account here, then create a database and copy the connection string. Open the .env file in the project root folder, assign your connection string to the variable named "MONGO_URI". Remember to replace "password" with your database user password.

  • Next, create a cloudinary account here, then create a folder named "productImages". Navigate to "programmable media" and copy the following credentials:

    • Cloud name
    • API key
    • API secret
Open the .env file and paste them according to the variable names.

Releases

No releases published

Packages

No packages published