{"id":21135700,"url":"https://github.com/furkan-dogu/productapi-2","last_synced_at":"2026-04-11T06:02:11.125Z","repository":{"id":239038737,"uuid":"798308546","full_name":"furkan-dogu/ProductAPI-2","owner":"furkan-dogu","description":"This project is a RESTful API developed using Node.js and Express. The API interacts with a MongoDB database and is documented with Swagger.","archived":false,"fork":false,"pushed_at":"2024-09-08T12:41:59.000Z","size":175,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T06:43:33.316Z","etag":null,"topics":["cors","dotenv","expressjs","mongodb","mongoose","nodejs","redoc-express","swagger-autogen","swagger-ui-express"],"latest_commit_sha":null,"homepage":"https://product-api-2.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/furkan-dogu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-09T14:17:10.000Z","updated_at":"2024-09-08T12:42:02.000Z","dependencies_parsed_at":"2024-05-09T16:42:57.039Z","dependency_job_id":"f91bcbd2-a4ed-4df2-800b-84399092bad5","html_url":"https://github.com/furkan-dogu/ProductAPI-2","commit_stats":null,"previous_names":["furkan-dogu/productapi-2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furkan-dogu%2FProductAPI-2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furkan-dogu%2FProductAPI-2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furkan-dogu%2FProductAPI-2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furkan-dogu%2FProductAPI-2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/furkan-dogu","download_url":"https://codeload.github.com/furkan-dogu/ProductAPI-2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243581062,"owners_count":20314163,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cors","dotenv","expressjs","mongodb","mongoose","nodejs","redoc-express","swagger-autogen","swagger-ui-express"],"created_at":"2024-11-20T06:57:54.326Z","updated_at":"2025-12-30T22:16:31.059Z","avatar_url":"https://github.com/furkan-dogu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Product API 2\n\nThis project is a RESTful API developed using Node.js and Express. The API interacts with a MongoDB database and is documented with Swagger. Once you perform the login process and obtain a token, you can access the products.\n\n### ERD\n\n![ERD](./erd.png)\n\n## Table of Contents\n\n- [Technologies Used](#technologies-used)\n- [Documentation](#documentation)\n- [Endpoints](#endpoints)\n- [Project Skeleton](#project-skeleton)\n\n## Live Demo\n\n[Product API 2](https://product-api-2.vercel.app/)\n\n## Technologies Used\n\n- **Node.js**: An environment used for executing JavaScript.\n- **Express**: A Node.js framework used for building web applications.\n- **MongoDB**: A NoSQL database.\n- **Mongoose**: An ODM (Object Data Modeling) library for MongoDB.\n- **dotenv**: Used for managing environment variables.\n- **swagger-autogen**: A tool used to automatically generate Swagger documents.\n- **swagger-ui-express**: An interface for presenting Swagger documents in Express.\n- **redoc-express**: An interface for presenting OpenAPI documents in Express.\n\n### Documentation\n\n- Swagger UI: [https://product-api-2.vercel.app/documents/swagger](https://product-api-2.vercel.app/documents/swagger)\n- Redoc: [https://product-api-2.vercel.app/documents/redoc](https://product-api-2.vercel.app/documents/redoc)\n- JSON Documentation: [https://product-api-2.vercel.app/documents/json](https://product-api-2.vercel.app/documents/json)\n\n## Endpoints\n\n### Users\n\n- `GET /users`: Lists all users.\n- `POST /users`: Creates a new user.\n- `GET /users/:userId`: Displays a specific user.\n- `PUT /users/:userId`: Updates information of a specific user.\n- `DELETE /users/:userId`: Deletes a specific user.\n\n### Authentication\n- `POST /auth/login`: Provides user login.\n- `GET /auth/logout`: Terminates the user session.\n\n### Categories\n\n- `GET /categories`: Lists all product categories.\n- `POST /categories`: Creates a new product category.\n- `GET /categories/:categoryId`: Displays a specific product category.\n- `PUT /categories/:categoryId`: Updates information of a specific product category.\n- `DELETE /categories/:categoryId`: Deletes a specific product category.\n\n### Products\n\n- `GET /products`: Lists all products.\n- `POST /products`: Creates a new product.\n- `GET /products/:productId`: Displays a specific product.\n- `PUT /products/:productId`: Updates information of a specific product.\n- `DELETE /products/:productId`: Deletes a specific product.\n\n## Project Skeleton\n\n```\nProduct API 2 (folder) \n│\n├── src\n│    ├── configs\n│    │     ├── dbConnection.js\n│    │     └── swagger.json\n│    ├── controllers\n│    │     ├── auth.js     \n│    │     ├── category.js          \n│    │     ├── product.js     \n│    │     ├── token.js     \n│    │     └── user.js\n│    ├── helpers\n│    │     ├── passwordEncrypt.js    \n│    │     └── sync.js \n│    ├── middlewares \n│    │     ├── authentication.js \n│    │     ├── errorHandler.js \n│    │     ├── permissions.js   \n│    │     └── queryHandler.js \n│    ├── models                    \n│    │     ├── category.js         \n│    │     ├── product.js     \n│    │     ├── token.js     \n│    │     └── user.js\n│    └── routes                \n│          ├── auth.js     \n│          ├── category.js     \n│          ├── document.js     \n│          ├── index.js     \n│          ├── product.js     \n│          ├── token.js     \n│          └── user.js\n├── .gitignore\n├── index.js\n├── package-lock.json\n├── package.json\n├── swaggerAutogen.js\n├── vercel.json\n└── README.md\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffurkan-dogu%2Fproductapi-2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffurkan-dogu%2Fproductapi-2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffurkan-dogu%2Fproductapi-2/lists"}