This is a boilerplate project to upload images from React frontend to Mongo DB using Express server Multer middleware and Mongoose.
- create the uploads folder here "server/uploads"
- create Mongo DB account on the www.mongodb.com website
- 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