Coder Social home page Coder Social logo

ecommerce-react's Introduction

React/Node.js template (MERN stack) ecommerce (light bundle: 100ko).

Demo

https://demo-react-eco2.herokuapp.com/

https://demo-react-eco2.herokuapp.com/admin (user: admin, psw: admin)

Prerequisites

Node.js, MongoDB and npm or yarn package manager are required

Installation

You will only need to install the modules and import your DB. You can run a demo collection from file 'democollections.json'

Installing the modules & importing the products list DB:

$ yarn
$ cd client && yarn start
import democollections.json
setup your config.js file (secret JWT & Mongo URI)

Features

  • cached DB for fast results
  • filters combinables bewteen each other
  • validators

Websites using this template

ecommerce-react's People

Contributors

anishmandal939 avatar dependabot[bot] avatar elibenjii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ecommerce-react's Issues

JWT issue

throw new TypeError('JwtStrategy requires a secret or key')

Node api is not running

Used this code in terminal : node index.js & npm start

is running without errors.

host/api response is like :

Not Found
The requested URL was not found on this server.

Same with admin, its not running as well.

Need some help with DB setup

Hey,

I tried to import the database but had no luck so far.
Here is my config.js file

module.exports = {
  secret: 'MY SECRET',
  DB_URI_DEV: 'mongodb://localhost:27017/product',
  DB_URI: 'mongodb://localhost:27017/product',
};

and in my MongoDB, I have a DB called product and inside I have two collections:
product and admins

but when I call the product API: http://localhost:5000/api/productsdata
I always get an empty array as result, any idea why?

democollection?

How do we import democollection.json to get a preview of the store? Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.