/Categories

Multi level nested category using graphql

Primary LanguageJavaScript

E-commerce categories

Multi level nested category using graphql

Contents

Project installation

  • To install the project first you need to clone the project, then open your terminal and run the following command
> git clone https://github.com/sakibhasancse/Categories.git
> cd ecommerce

Running the application

Prerequisites

Steps
  • Create a .env file and Add the below entries or change accordingly. You can follow the .env.sample file to see the format.

    MONGO_URL=mongodb://localhost:27017/categorydb
    PORT=4000
    REDIS_HOST=127.0.0.1
    REDIS_PORT=6379
    
  • Open your terminal and run the following command

cd Categories
npm install
npm start
  • After completing this process the server will be ready for testing, you will see the following logs
🚀 Server ready at http://localhost:4000
MongoDB Connected: localhost

Languages & tools

Apollo playground

Screenshot 2023-03-14 at 5 00 30 AM