Spaces:
Running
Running
feat: implement core backend POS API with authentication, role-based access control, menu management, and order processing logic.
1e480b5 Download src/config/cloudinary.js from aliroohan179/face: direct link, hf CLI and curl.
- Browser
- Download file 679 Bytes
-
https://huggingface.co/spaces/aliroohan179/face/resolve/main/src/config/cloudinary.js
- Command line
-
hf download hf://spaces/aliroohan179/face/src/config/cloudinary.js
-
curl -L -o cloudinary.js https://huggingface.co/spaces/aliroohan179/face/resolve/main/src/config/cloudinary.js
679 Bytes
| const cloudinary = require('cloudinary').v2; | |
| const { CloudinaryStorage } = require('multer-storage-cloudinary'); | |
| const multer = require('multer'); | |
| cloudinary.config({ | |
| cloud_name: process.env.CLOUDINARY_CLOUD_NAME, | |
| api_key: process.env.CLOUDINARY_API_KEY, | |
| api_secret: process.env.CLOUDINARY_API_SECRET, | |
| }); | |
| const menuImageStorage = new CloudinaryStorage({ | |
| cloudinary, | |
| params: { | |
| folder: 'golden-wok/menu', | |
| allowed_formats: ['jpg', 'jpeg', 'png', 'webp'], | |
| transformation: [{ width: 600, height: 600, crop: 'fill', quality: 'auto' }], | |
| }, | |
| }); | |
| const uploadMenuImage = multer({ storage: menuImageStorage }); | |
| module.exports = { cloudinary, uploadMenuImage }; | |