{"id":22961842,"url":"https://github.com/khoido2003/hapi-nodejs","last_synced_at":"2025-04-02T03:23:17.295Z","repository":{"id":244015574,"uuid":"810204765","full_name":"khoido2003/Hapi-Nodejs","owner":"khoido2003","description":"RESTFul API with Hapi + Nodejs + MongoDB","archived":false,"fork":false,"pushed_at":"2024-06-14T03:22:27.000Z","size":169,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T18:16:36.723Z","etag":null,"topics":["hapijs","mongodb","nodej","restful-api"],"latest_commit_sha":null,"homepage":"","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/khoido2003.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-06-04T08:48:25.000Z","updated_at":"2024-06-14T03:37:12.000Z","dependencies_parsed_at":"2024-06-12T14:13:00.676Z","dependency_job_id":"a6c320a2-308b-41f2-a096-bbad43df8079","html_url":"https://github.com/khoido2003/Hapi-Nodejs","commit_stats":null,"previous_names":["khoido2003/hapi-nodejs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khoido2003%2FHapi-Nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khoido2003%2FHapi-Nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khoido2003%2FHapi-Nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khoido2003%2FHapi-Nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khoido2003","download_url":"https://codeload.github.com/khoido2003/Hapi-Nodejs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246748200,"owners_count":20827285,"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":["hapijs","mongodb","nodej","restful-api"],"created_at":"2024-12-14T19:14:11.099Z","updated_at":"2025-04-02T03:23:17.253Z","avatar_url":"https://github.com/khoido2003.png","language":"JavaScript","readme":"# Hapi Node.js API Project\n\n\n## Introduction\n\nThis project demonstrates how to create a RESTful API using Hapi.js with Node.js. The API supports basic CRUD operations and includes authentication using JWT (JSON Web Tokens).\n\n## Features\n\n- **Hapi.js Framework**: Robust and scalable web framework for building APIs.\n- **JWT Authentication**: Secure user authentication using JSON Web Tokens.\n- **CRUD Operations**: Basic Create, Read, Update, and Delete functionalities.\n- **Error Handling**: Graceful error handling using Boom.\n- **Data Validation**: Request payload validation using Joi.\n\n## Prerequisites\n\n- **Node.js**: Ensure you have Node.js installed. You can download it from [nodejs.org](https://nodejs.org/).\n- **npm**: Node package manager is installed with Node.js.\n\n## Installation\n\n1. **Clone the repository**:\n   ```sh\n   git clone https://github.com/khoido2003/Hapi-Nodejs.git\n   ```\n2. **Install Dependencies**:\n\n   ```sh\n   npm install\n   ```\n\n3. **Start the Project**:\n   ```sh\n   npm run start\n   ```\n\n## Configuration\n\nBefore running the application, you need to set up the configuration variables. Create a `.env` file in the root directory of the project and add the following variables:\n\n```env\n   NODE_ENV=''\n\n  HAPI_PORT=''\n  HAPI_HOST=''\n\n  MONGODB_URI=''\n\n  JWT_SECRET=''\n  JWT_EXPIRES_IN=''\n  JWT_COOKIE_EXPIRES_IN=''\n```\n\n## Technologies Used\n\n- [Hapi](https://hapi.dev/)\n- [Nodejs](https://nodejs.org)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhoido2003%2Fhapi-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhoido2003%2Fhapi-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhoido2003%2Fhapi-nodejs/lists"}