{"id":19664952,"url":"https://github.com/cudi7/node.js_rest-api","last_synced_at":"2026-04-14T04:31:08.683Z","repository":{"id":118729061,"uuid":"363152917","full_name":"Cudi7/Node.js_REST-API","owner":"Cudi7","description":"REST API with Node, Express, EJS and MongoDB (GET, POST, PATCH, DELETE)","archived":false,"fork":false,"pushed_at":"2021-04-30T18:23:26.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-22T04:03:39.760Z","etag":null,"topics":["ejs","express","mongodb","nodejs","rest-api"],"latest_commit_sha":null,"homepage":"","language":"EJS","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/Cudi7.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":"2021-04-30T13:41:08.000Z","updated_at":"2021-05-17T11:38:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"c9419985-efd5-42bb-b60b-aea18b4bc94c","html_url":"https://github.com/Cudi7/Node.js_REST-API","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Cudi7/Node.js_REST-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cudi7%2FNode.js_REST-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cudi7%2FNode.js_REST-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cudi7%2FNode.js_REST-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cudi7%2FNode.js_REST-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cudi7","download_url":"https://codeload.github.com/Cudi7/Node.js_REST-API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cudi7%2FNode.js_REST-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31782736,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ejs","express","mongodb","nodejs","rest-api"],"created_at":"2024-11-11T16:19:44.784Z","updated_at":"2026-04-14T04:31:08.670Z","avatar_url":"https://github.com/Cudi7.png","language":"EJS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NodeJS, Express, MongoDB REST API\n\n\u003e REST API with Node, Express, EJS and MongoDB (GET, POST, PATCH, DELETE)\n\u003e \n# Live demo\n\n\u003ehttps://rest-api-rc.herokuapp.com/\n\n## Table of contents\n\n- [General info](#general-info)\n- [Code Examples](#code-examples)\n- [Features](#features)\n- [Contact](#contact)\n\n## General info\n\nFollowing my desire to learn more about back-end technologies I completed what I believed was the entry point of any full stack developer, a REST API.\nI created something fundamental and quick (even though it took a while) that I could do to practice node by itself, so later, I can integrate full applications using React\n\n## Code Examples\n\n```\nimport express from 'express';\nimport dotenv from 'dotenv';\nimport methodOverride from 'method-override';\n\nimport connectDB from './config/db.js';\nimport indexRoute from './routes/indexRoute.js';\nimport registerRoute from './routes/registerRoute.js';\nimport logoutRoute from './routes/logoutRoute.js';\nimport usersRoute from './routes/usersRoute.js';\nimport profileRoute from './routes/profileRoute.js';\n\ndotenv.config({ path: './config/.env' });\n\nconst app = express();\nconnectDB();\n\napp.set('views', './mvc/views');\n\nconst PORT = process.env.PORT || 5001;\n\napp.use(express.json());\napp.use(express.urlencoded({ extended: true }));\n\napp.use(methodOverride('_method'));\napp.use('/', indexRoute);\napp.use('/users', usersRoute);\napp.use('/register', registerRoute);\napp.use('/profile', profileRoute);\napp.use('/logout', logoutRoute);\n\napp.listen(PORT, () =\u003e {\n  console.log(`App running on port ${PORT}`);\n});\n\nglobal.userInfo = undefined;\n```\n\n## Features\n\nUser can:\n\n- Register (we will check if the e-mail is already in use)\n- Login (we will check if the e-mail exists or/and if the password is correct)\n- Logout\n- Delete Profile\n- Update Profile\n- Get a list of all the users info\n- Get a single user info\n\n## Technology used\n\nThe project is created with:\n\n- node\n- express\n- dotenv,\n- nodemon,\n- bcrypt,\n- ejs,\n- mongodb\n- mongoose,\n- method-override\n\n## Contact\n\nCreated by Cudi - feel free to contact me!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcudi7%2Fnode.js_rest-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcudi7%2Fnode.js_rest-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcudi7%2Fnode.js_rest-api/lists"}