{"repo":"rohanmistry231/AI-Wallpapers-Backend","free":true,"listed":false,"github":"https://github.com/rohanmistry231/AI-Wallpapers-Backend","clone":"git clone https://github.com/rohanmistry231/AI-Wallpapers-Backend.git","description":"A Node.js and Express backend for an AI-powered wallpaper generation platform, providing APIs for image processing, user management, and storage with MongoDB. Integrates with AI models to generate and serve custom wallpapers, ensuring scalability and secure data handling.","language":"JavaScript","stars":25,"topics":["backend","express","mongodb","nodejs","rest-api","wallpaper-app"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"AI Wallpapers Website - Backend This is the backend for the AI Wallpapers website, which handles user authentication, wallpaper management, and other related operations. The backend is built with Node.js , Express.js , and MongoDB . Folder Structure The project has the following folder structure: Getting Started Follow the instructions below to set up and run the backend locally. Prerequisites - Node.js (v14 or higher) - MongoDB (local or Atlas cluster) Installing Dependencies 1. Clone this repository: 2. Install the required dependencies: Setting Up Environment Variables 1. Create a .env file in the root directory. 2. Add the following variables to the .env file: Running the Application To start the backend server, run the following command: The server will run on http://localhost:3000 . API Endpoints The following are the main API routes for managing wallpapers and user authentication: Image Routes - POST /images : Create a new image entry. - Body: imageName , imageUrl , description , tags , size , format , category , resolution - Response: Status 201, Image data - GET /images : Get all images. - Response: Status 200, List of images - GET /images/:id : Get a single image by its ID. - Params: id (image ID) - Response: Status 200, Image data - PUT /images/:id : Update an image by its ID. - Params: id (image ID) - Body: imageName , imageUrl , description , tags , size , format , category , resolution - Response: Status 200, Updated image data - DELETE /images/:id : Delete an i","default_branch":null,"files":null,"tree":[],"storefront":"/r/rohanmistry231","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rohanmistry231/AI-Wallpapers-Backend/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}