https://github.com/prashuk/expressjs-ecommerce
https://github.com/prashuk/expressjs-ecommerce
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/prashuk/expressjs-ecommerce
- Owner: prashuk
- Created: 2019-07-01T17:11:51.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T07:11:45.000Z (over 3 years ago)
- Last Synced: 2023-03-04T13:28:28.108Z (over 3 years ago)
- Language: JavaScript
- Size: 1.25 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ecommerce-api-node
## Introduction
This project is the backend of E-Commerce React App, an imaginary online shopping.
## Setup
Make sure to follow all these steps exactly as explained below.
### Install MongoDB
To run this project, you need to install the latest version of MongoDB Community Edition first.
https://docs.mongodb.com/manual/installation/
Once you install MongoDB, make sure it's running.
### Run Mongo Daemon
mongod (for older version of mongo)
mongod --config /usr/local/etc/mongod.conf (new version)
### Install the Dependencies
Next, from the project folder, install the dependencies:
sudo npm update
sudo npm install
### Populate the Database
node seed.js
### Start the Server
node index.js
This will launch the Node server on port 3900. If that port is busy, you can set a different point in config/default.json.
Open up your browser and head over to:
http://localhost:3900/api/genres
You should see the list of genres. That confirms that you have set up everything successfully.