{"id":22680152,"url":"https://github.com/coderooz/ecommerce-backend","last_synced_at":"2025-03-29T13:43:17.514Z","repository":{"id":249279888,"uuid":"831084689","full_name":"coderooz/ecommerce-backend","owner":"coderooz","description":"This is a Node.js backend for an e-commerce application using Express and MongoDB.","archived":false,"fork":false,"pushed_at":"2025-01-22T08:18:05.000Z","size":25,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T14:36:19.949Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coderooz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-07-19T16:11:58.000Z","updated_at":"2024-07-19T16:15:47.000Z","dependencies_parsed_at":"2025-01-22T09:21:48.350Z","dependency_job_id":"8275f060-749d-49cf-babd-c4f662ccbc71","html_url":"https://github.com/coderooz/ecommerce-backend","commit_stats":null,"previous_names":["coderooz/ecommerce-backend"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderooz%2Fecommerce-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderooz%2Fecommerce-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderooz%2Fecommerce-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderooz%2Fecommerce-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderooz","download_url":"https://codeload.github.com/coderooz/ecommerce-backend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246193156,"owners_count":20738450,"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":[],"created_at":"2024-12-09T19:12:33.983Z","updated_at":"2025-03-29T13:43:17.492Z","avatar_url":"https://github.com/coderooz.png","language":"JavaScript","readme":"# E-commerce Backend\r\n\r\nThis is a Node.js backend for an e-commerce application using Express and MongoDB.\r\n\r\n## Getting Started\r\n\r\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes.\r\n\r\n### Prerequisites\r\n\r\nYou need to have Node.js, npm, and MongoDB installed on your local machine.\r\n\r\n- [Node.js](https://nodejs.org/)\r\n- [npm](https://www.npmjs.com/)\r\n- [MongoDB](https://www.mongodb.com/)\r\n\r\n### Installing\r\n\r\n1. Clone the repository:\r\n   ```bash\r\n   git clone https://github.com/coderooz/ecommerce-backend.git\r\n   cd ecommerce-backend\r\n   ```\r\n\r\n2. Install the dependencies:\r\n   ```bash\r\n    npm install express mongoose body-parser bcryptjs jsonwebtoken\r\n   ```\r\n\r\n3. Start MongoDB:\r\n   ```bash\r\n   mongod\r\n   ```\r\n\r\n4. Start the server:\r\n   ```bash\r\n   node index.js\r\n   ```\r\n\r\n5. The API will be available at `http://localhost:3000`.\r\n\r\n### API Endpoints\r\n\r\n- `POST /api/register` - Register a new user\r\n- `POST /api/login` - Login a user and get a token\r\n- `GET /api/products` - Retrieve all products\r\n- `POST /api/products` - Create a new product (protected)\r\n\r\n### Built With\r\n\r\n- [Express](https://expressjs.com/) - The web framework used\r\n- [Mongoose](https://mongoosejs.com/) - MongoDB object modeling tool\r\n- [Body-parser](https://www.npmjs.com/package/body-parser) - Node.js body parsing middleware\r\n- [Bcryptjs](https://www.npmjs.com/package/bcryptjs) - Library to hash passwords\r\n- [Jsonwebtoken](https://www.npmjs.com/package/jsonwebtoken) - Library to sign and verify tokens\r\n\r\n### Contributing\r\n\r\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\r\n\r\n### Authors\r\n\r\n- **Ranit Saha** - *Initial work* - [Coderooz](https://github.com/coderooz)\r\n\r\n### License\r\n\r\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\r\n---","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderooz%2Fecommerce-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderooz%2Fecommerce-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderooz%2Fecommerce-backend/lists"}