Multi level nested category using graphql
- 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
-
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
- Open your browser and visit this http://localhost:4000 url
Apollo playground