{"id":14975530,"url":"https://github.com/techreagan/blog-api","last_synced_at":"2025-10-27T14:30:24.773Z","repository":{"id":44090665,"uuid":"234541065","full_name":"techreagan/blog-api","owner":"techreagan","description":"This is a minimal blog api with some advance features developed using NodeJS, ExpressJS and MongoDB. If you are looking for a free RESTful API to interact with feel free to use this. It's open source.","archived":false,"fork":false,"pushed_at":"2020-01-17T12:43:12.000Z","size":447,"stargazers_count":21,"open_issues_count":0,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-01T06:05:32.113Z","etag":null,"topics":["api","api-rest","expressjs","javascript","javascript-framework","jwt","mongodb","mongoose","mongoosejs","nodejs"],"latest_commit_sha":null,"homepage":null,"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/techreagan.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}},"created_at":"2020-01-17T12:10:20.000Z","updated_at":"2023-09-10T18:56:04.000Z","dependencies_parsed_at":"2022-07-29T01:39:10.095Z","dependency_job_id":null,"html_url":"https://github.com/techreagan/blog-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techreagan%2Fblog-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techreagan%2Fblog-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techreagan%2Fblog-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techreagan%2Fblog-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techreagan","download_url":"https://codeload.github.com/techreagan/blog-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238508424,"owners_count":19484132,"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":["api","api-rest","expressjs","javascript","javascript-framework","jwt","mongodb","mongoose","mongoosejs","nodejs"],"created_at":"2024-09-24T13:52:10.330Z","updated_at":"2025-10-27T14:30:24.399Z","avatar_url":"https://github.com/techreagan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blog RESTful API\n\n\u003e This is a minimal blog api with some advance features developed using NodeJS, ExpressJS and MongoDB. If you are looking for a free RESTful API to interact with feel free to use this. It's open source.\n\n## Features\n\n- Authentication with JWT (Reset Password with email)\n- User Create, Read, Update and Delete (CRUD) operations\n- CRUD operations for blog post including uploading banner image for post\n- Visitors can leave a comment\n- Pagination and search where necessary\n- API Security (NoSQL Injections, XSS Attacks, http param pollution etc)\n\n## API Documentation\n\nHosted on netlify: [Blog API](https://blog-api-docs-77ae6a.netlify.com/)\n\nExtensive and testing documentation with postman: [Blog API](https://documenter.getpostman.com/view/9407876/SWLmX4jq?version=latest)\n\n## Database Model\n\nThough the diagram uses sql data type, this diagram is to show you the various collections in the mongo database.\n\n![Screenshot](public/Blog-API-DB-Models.png)\n\n## Requirement\n\n- NodeJS\n- MongoDB\n\n## Configuration File\n\nModify the config/.env file to your environment variables, set your JWT_SECRET and SMTP variables\n\n```ENV\nNODE_ENV=development\nPORT=3001\n\nMONGO_URI=YOUR_URL\n\nJWT_SECRET=YOUR_SECRET\nJWT_EXPIRE=30d\nJWT_COOKIE_EXPIRE=30\n\nSMTP_HOST=smtp.mailtrap.io\nSMTP_PORT=2525\nSMTP_EMAIL=\nSMTP_PASSWORD=\nFROM_EMAIL=noreply@boilerplate.com\nFROM_NAME=Boilerplate\n```\n\nEmail testing: use mailtrap for email testing, it's easy no stress.\n\n## Installation\n\nInstall all npm dependecies\n\n```console\nnpm install\n```\n\nInstall nodemon globally\n\n```console\nnpm install -g nodemon\n```\n\nRun database seeder\n\n- Seeder folder is \\_data/\n- Edit the seeder file if you want to\n\n```console\nnode seeder -i\n```\n\nDelete all data\n\n```console\nnode seeder -d\n```\n\n## Start web server\n\n```console\nnode run dev\n```\n\n## License\n\nThis project is licensed under the MIT License\n\n## Developed by Reagan Ekhameye (Tech Reagan)\n\nReach me on twitter [@techreagan](https://www.twitter.com/techreagan)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechreagan%2Fblog-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechreagan%2Fblog-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechreagan%2Fblog-api/lists"}