This is the repository for my ecommerce site, built using Node.js and MongoDB.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Node.js
- MongoDB
- User authentication and authorization
- Browse and search products
- Add items to cart and complete checkout
- View and manage past orders
- Edit account information
- Clone the repository:
git clone https://github.com/remindev/Nester-ECommerce.git
- Create
.env
andfirebaseConfig.json
file and add necessary configurations - Install the dependencies:
npm install
- Start the development server:
npm start
You need to create an accound and get admin sdk config file from your app setting's. Then copy the file into cloned folder. Path must me accessable.
The .env
file
NODE_ENV = development
SECRET_KEY = <SessionSecret>
USERDB_URL = <MongoDB connection URL>
GOOGLE_APPLICATION_CREDENTIALS = <Path to firebase admin sdk config file>
RAZORPAY_KEY_ID = <Your KEY id for razorpay api>
RAZPRPAY_KEY_SECRET = <Your SECRET for razorpay api>
PAYPAL_APP_SECRET = <Your SECRET for paypal api>
PAYPAL_CLIENT_ID = <Your CLIENT ID for paypal>
GMAIL_ID = <Gmail id for sending emails to users>
GMAIL_PASSWORD = <Passowrd of Gmail id>
You need replace these whith your api keys and secrets to .env
file
The site can be deployed to a variety of hosting platforms, such as Heroku or AWS.
If you would like to contribute to the project, please fork the repository and submit a pull request.