{"id":15144250,"url":"https://github.com/anjanshrestha8/random-joke-api","last_synced_at":"2026-02-14T19:03:26.699Z","repository":{"id":256246537,"uuid":"854687934","full_name":"anjanshrestha8/Random-Joke-Api","owner":"anjanshrestha8","description":"This is simple api for joke with swagger.","archived":false,"fork":false,"pushed_at":"2025-02-24T16:30:03.000Z","size":5018,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T16:50:37.759Z","etag":null,"topics":["nodejs","npm-package","vercel","vercel-deployment"],"latest_commit_sha":null,"homepage":"https://random-joke-api-pi.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/anjanshrestha8.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-09-09T15:55:49.000Z","updated_at":"2025-02-24T16:30:06.000Z","dependencies_parsed_at":"2024-12-20T04:08:35.647Z","dependency_job_id":"57f132b4-985c-4cb2-9ac9-640e0f50b46b","html_url":"https://github.com/anjanshrestha8/Random-Joke-Api","commit_stats":null,"previous_names":["anjanshrestha8/random-joke-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anjanshrestha8/Random-Joke-Api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anjanshrestha8%2FRandom-Joke-Api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anjanshrestha8%2FRandom-Joke-Api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anjanshrestha8%2FRandom-Joke-Api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anjanshrestha8%2FRandom-Joke-Api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anjanshrestha8","download_url":"https://codeload.github.com/anjanshrestha8/Random-Joke-Api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anjanshrestha8%2FRandom-Joke-Api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272611908,"owners_count":24964385,"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","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["nodejs","npm-package","vercel","vercel-deployment"],"created_at":"2024-09-26T10:23:09.414Z","updated_at":"2026-02-14T19:03:26.667Z","avatar_url":"https://github.com/anjanshrestha8.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Random Joke API\n\nA simple Node.js application that provides random jokes through an API. This project uses Express.js for building the server and is documented using Swagger. It is deployed on Vercel for easy access.\n\n## Features\n\n- Provides random jokes through a REST API.\n- Swagger documentation for easy API exploration.\n- Deployed on Vercel for live use.\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js (v14 or later)\n- npm (v6 or later)\n\n### Installation\n\n1. **Clone the repository**:\n\n   ```bash\n   git clone https://github.com/anjanshrestha8/Random-Joke-Api.git\n\n2. **Navigate to the project directory**:\n\n   ```bash\n   cd Random-Joke-Api\n3.**Install the dependencies**\n  \n   ```bash\n    npm install\n  ```\n### Run Application \n\n  ```bash\n        npm start\n  ```\n\n### Random Joke API\n\n- It is a project that provides three API for the random jokes where\n- ```/jokes```: API provides all the Jokes stored\n- ```/joke```: Second API provide single joke at a time randomly\n- ```/add-joke```: Last API can be used to add the jokes in the storage\n\n[Random Joke API - GitHub](https://github.com/anjanshrestha8/Random-Joke-Api)\n\n### Swagger UI \n\n-- I used Swagger UI in my project to provide a API documentation which may help other developers to access my API easily without any issue regading the API\nYou can access the Swagger UI docs on the URL below after stating the server\n\n```localhost:8000/docs```\n\n\n### EJS \n-- I have implemented EJS(Embedded javascript) for the User Interface ESJ is used in this project because EJS allows you to generate dynamic HTML content by embedding JavaScript code within your HTML templates.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanjanshrestha8%2Frandom-joke-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanjanshrestha8%2Frandom-joke-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanjanshrestha8%2Frandom-joke-api/lists"}