Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# MernEcommerce
## A project to help users buy products online.
### MERN Stack project to learn backend and redux. Frontend SCSS is fairly basic as my intention was to learn backend and API calls.

- Newly implemented login and signup through Auth0.
- User Orders and history
- Products with price filteration and different keywords filter
- Search only by the Full product name.
- Payment implemented through Stripe API
- Images uploaded on cloudinary.{Commented the implementation for now}

# Setup
#### cd to the frontend folder and run the following commands to start the react server at http://localhost:3000 -
- `npm ci`
- `npm start`

#### cd to the server folder and run the following commands to start the node server at http://localhost:8070 -
- `npm ci`
- `mkdir config` to create new folder called config
- `cd config` to go inside the config folder
- `touch database.js` to create a file called the database.js inside config folder

### Copy the following code in database.js
- const mongoose = require("mongoose");
- const connectDB = () => {
- mongoose.connect(process.env.DB_URI, {
- useUnifiedTopology: true,
- useNewUrlParser: true,
- })
- .then((e) => {
- console.log(`Mongo DB connected with server ${e.connection.host}`);
- });
-};
- module.exports = connectDB;

### Go to the server folder and then run the Script
- `npm run dev`
1 change: 1 addition & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
.env.development.local
.env.test.local
.env.production.local
.env

npm-debug.log*
yarn-debug.log*
Expand Down
Loading