
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
nodejs-api-template
Advanced tools
This is a simple API that allows you to create, read, update, and delete portfolio projects. It uses MongoDB as the database and Express.js as the web framework.
This is a simple API that allows you to create, read, update, and delete portfolio projects. It uses MongoDB as the database and Express.js as the web framework.
npm install
npm start
To create a new portfolio project, send a POST request to the /projects
endpoint with the following JSON body:
{
"title": "Md Ranju Portfolio Projects API",
"description": "This is a simple API that allows you to create, read, update, and delete portfolio projects.",
"shortDescription": "Simple API for portfolio projects",
"sourceCodeLink": "https://github.com/mdranju/mdranju-portfolio-projects-api",
"liveLink": "https://mdranju-portfolio-projects-api.herokuapp.com",
"coverImageLink": "https://example.com/cover.png",
"author": {
"name": "Md Ranju",
"imageLink": "https://example.com/image.png"
},
"technologies": [
"Javascript",
"Node.js",
"Express.js",
"MongoDB",
"JSON Web Tokens",
"Bcrypt"
]
}
{
"_id": "61e0a0f8c9b9c1e1a4f0b2e3",
"title": "Md Ranju Portfolio Projects API",
"description": "This is a simple API that allows you to create, read, update, and delete portfolio projects.",
"shortDescription": "Simple API for portfolio projects",
"sourceCodeLink": "https://github.com/mdranju/mdranju-portfolio-projects-api",
"liveLink": "https://mdranju-portfolio-projects-api.herokuapp.com",
"coverImageLink": "https://example.com/cover.png",
"author": {
"name": "Md Ranju",
"imageLink": "https://example.com/image.png"
},
"slug": "md-ranju-portfolio-projects-api",
"technologies": [
"Javascript",
"Node.js",
"Express.js",
"MongoDB",
"JSON Web Tokens",
"Bcrypt"
],
"timestamps": {
"createdAt": "2023-01-01T00:00:00.000Z",
"updatedAt": "2023-01-01T00:00:00.000Z"
}
}
To read all portfolio projects, send a GET request to the /projects
endpoint.
To read a specific portfolio project, send a GET request to the /projects/:id
endpoint, where :id
is the ID of the project you want to read.
To update a specific portfolio project, send a PUT request to the /projects/:id
endpoint, where :id
is the ID of the project you want to update. Include the updated project data in the request body.
To delete a specific portfolio project, send a DELETE request to the /projects/:id
endpoint, where :id
is the ID of the project you want to delete.
The database is MongoDB, and the connection details are stored in the config/database.js
file. You can change the database connection details to match your own MongoDB setup.
This project is licensed under the MIT License. See the LICENSE file for more information.
FAQs
This is a simple API that allows you to create, read, update, and delete portfolio projects. It uses MongoDB as the database and Express.js as the web framework.
The npm package nodejs-api-template receives a total of 2 weekly downloads. As such, nodejs-api-template popularity was classified as not popular.
We found that nodejs-api-template demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.