{"id":22620832,"url":"https://github.com/amaranand360/nftcrudbackend_api","last_synced_at":"2026-04-05T21:32:34.527Z","repository":{"id":167664872,"uuid":"643290443","full_name":"amaranand360/NftCrudBackend_api","owner":"amaranand360","description":"It is a backend API that allows users to create, read, update, and delete NFTs.","archived":false,"fork":false,"pushed_at":"2023-05-20T18:15:52.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T02:13:59.733Z","etag":null,"topics":["bcrypt","express-js","jwt-auth","node-api","nodejs","nodejs-server"],"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/amaranand360.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":"2023-05-20T17:34:56.000Z","updated_at":"2024-08-02T05:13:09.000Z","dependencies_parsed_at":"2023-08-01T14:01:02.613Z","dependency_job_id":null,"html_url":"https://github.com/amaranand360/NftCrudBackend_api","commit_stats":null,"previous_names":["amaranand360/nftcrudbackendassignment","amaranand360/nftcrudbackend_api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amaranand360%2FNftCrudBackend_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amaranand360%2FNftCrudBackend_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amaranand360%2FNftCrudBackend_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amaranand360%2FNftCrudBackend_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amaranand360","download_url":"https://codeload.github.com/amaranand360/NftCrudBackend_api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246126737,"owners_count":20727595,"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":["bcrypt","express-js","jwt-auth","node-api","nodejs","nodejs-server"],"created_at":"2024-12-08T22:15:45.359Z","updated_at":"2025-12-30T23:19:21.601Z","avatar_url":"https://github.com/amaranand360.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NFT Management API 🚀\n\nThis API provides endpoints for managing NFTs (Non-Fungible Tokens), allowing users to create, read, update, and delete their NFTs. It is built using Node.js, Express.js, bcrypt for password hashing, and JWT for authentication. 🎉\n\n# Features ✨\n\n- User registration and login with JWT authentication.\n- Create, read, update, and delete NFTs.\n- Fetch all NFTs of the authenticated user.\n- Get a specific NFT by its ID.\n- Secure password storage with bcrypt hashing.\n- Error handling with custom error middleware.\n- MongoDB for data storage and Mongoose for database connectivity.\n- Token-based authentication and authorization.\n    \n\n# Technologies Used 🛠️\n\n- Node.js\n- Express.js\n- bcrypt\n- JWT (JSON Web Tokens)\n- MongoDB\n- Mongoose\n\n# Installation ⚙️\n\n    - Clone the repository: git clone :https://github.com/amaranand360/NftCrudBackendAssignment.git\n    - Install the dependencies: npm install\n\n# Configuration ⚙️\n\n\u003ch2\u003eOpen the .env file and configure the following variables:\u003c/h2\u003e    \n\n- PORT : The port number on which the server will run (default is 3030).\n- MONGO_URI : The MongoDB connection URI.\n- JWT_SECRET : A secret key used for JWT token generation and verification.\n- JWT_EXPIRES_IN : Token expiration time (e.g., '10m', '20m', '30m').\n- Other configuration variables as required.\n\n# Usage 🚀\n\n   - Start the server: npm start\n   - The API will be accessible at http://localhost:3030, where \u003cPORT\u003e is the configured port number.\n\n# API Endpoints 📝\n  \n  - POST /api/auth/register : Register a new user.\n - POST /api/auth/login : Log in a user and generate an authentication token.\n - POST /api/nfts : Create a new NFT (requires authentication).\n - GET /api/nfts : Get all NFTs of the authenticated user.\n - GET /api/nfts/:id : Get a specific NFT by its ID.\n - PUT /api/nfts/:id : Update a specific NFT by its ID (requires authentication).\n - DELETE /api/nfts/:id : Delete a specific NFT by its ID (requires authentication).\n\n# Error Handling ⚠️\n\n- The API handles errors using a custom error handler middleware. When an error occurs, it returns an appropriate error response with the corresponding status code.\nAuthentication and Authorization 🔒\n\n- Authentication is implemented using JWT (JSON Web Tokens). Users can register and log in to obtain a token, which must be included in the Authorization header of authenticated requests. Unauthorized requests will receive a 401 Unauthorized response.\n\n# Database 💾\n\nThe API uses MongoDB as the database to store user and NFT information. The Mongoose library is used for database connectivity and data modeling.\n\n# Security 🔐\n\nThe API ensures security through password hashing using bcrypt and authentication token generation using JWT. User passwords are never stored in plain text.\n\n# Contributing 👥\n\nContributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request.\n \n  - If you have any questions or comments, please feel free to contact me at: amar.anand0030@gmail.com 👈\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famaranand360%2Fnftcrudbackend_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famaranand360%2Fnftcrudbackend_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famaranand360%2Fnftcrudbackend_api/lists"}