Before everything you have to create a .env file.
PORT=3000
FRONTEND_URL=http://localhost:5173
#FRONTEND_URL=https://frame-work-front.vercel.app
TOKEN_SECRET=
MONGODB_URI=
#MONGODB_URI=
CLOUDINARY_NAME=
CLOUDINARY_KEY=
CLOUDINARY_SECRET=
#GMAIL_PASSWORD=
Here will be explained the routes made to work with the plugins
- figma.routes.js
- brand.routes.js
router.get("/:id/change", async (req, res) => {}
router.post("/:id/changeApplied", async (req, res) => {}
router.post("/create", async (req, res) => {}
router.post("/update", async (req, res) => {}
router.post("/createBrand", async (req, res) => {}
router.post("/:figmaId/gettingImagesURL", async (req, res) => {}
router.get("/all", async (req, res, next) => {}
router.get("/:figmaName", async (req, res, next) => {}
router.get("/all", async (req, res, next) => {}
router.get("/owned", async (req, res, next) => {}
router.post("/", uploader.single("picture"), async (req, res, next) => {}
router.get("/:id", async (req, res, next) => {}
router.post("/:id", async (req, res, next) => {}
router.patch("/:id", uploader.array("pictures"), async (req, res, next) => {}
router.get("/notify/:id", async (req, res, next) => {}
router.delete("/:id", async (req, res, next) => {}
JRJR - @twitter_handle - email@email_client.com
Project Link: https://github.com/jreynaud25/Framework-backend