Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 567 Bytes

File metadata and controls

16 lines (12 loc) · 567 Bytes

React Express Multer Mongoose File Image Upload

This is a boilerplate project to upload images from React frontend to Mongo DB using Express server Multer middleware and Mongoose.

Running the project

  1. create the uploads folder here "server/uploads"
  2. create Mongo DB account on the www.mongodb.com website
  3. create server/.env file and set up environment variables (take a look at .env.example):
    • MONGODB_URI
    • TEST_MONGODB_URI
    • PORT
    • SECRET
  • run the server - cd server, npm run server
  • run the client - cd client, npm start