This API can add images and send them to a MongoDB database. Using the /image/id
search param you can search for your images by their ID and have the image rendered infront of you.
https://image-api-f8qs.onrender.com
https://image-api-f8qs.onrender.com/upload
Use Postman for adding images or any other API service.
https://image-api-f8qs.onrender.com/image/id
64e76e4e53ead60703895ba5
64e76f7e6fbe37fb8474d93b
64edba179a581d5a79deec98
64edbaab9a581d5a79deec9b
664655f27ad5ac4ba5177b85
66477d571117960956372a36
66477d881117960956372a38
6649f21da6756d4843d9ddcc
6649f384a6756d4843d9ddcf
npm install
nodemon app.js
Deploy API with hidden .env or config.js file
If you have a hidden config.js file or any other named file with the mongodb uri then on render.com when you go on environment, navigate to Secret Files and fill in the details for your config.js file there instead of environment variables:
Please make sure to setup a MongoDB cluster before you use this API. Here is an informative tutorial on how you can do this: https://www.youtube.com/watch?v=s0anSjEeua8&ab_channel=TheNetNinja