You can view the images in an elegant way
Config your page with your admin site
-
Link page:
-
Link Admin page:
- Clone or download the repository: mireiagrauPhotografExpress
You need to have installed NodeJS with npm, and MongoDB
You need to create an .env file in the project root with the following environment variables configured:
-
Port:
PORT=3001
-
Mongodb path and database to use:
DB_URL=mongodb://localhost:27017/test
-
Cloudinary account keys: You need to be registered in cloudinary and add your account details to the enviroment variables:
CLOUD_NAME=XXXXXXXXXX API_KEY=XXXXXXXXXX API_SECRET=XXXXXXXXXX
-
Upload folder for cloudinary images:
UPLOAD_FOLDER=uploads
All dependencies have to be be installed:
$ npm install
Start server
$ npm run dev
- Clone or download this repository
You need to create an .env.development file in the project root with the following environment variable configured:
- Api server:
REACT_APP_API_SERVER=http://localhost:3001
All dependencies have to be be installed:
$ npm install
Start React App
$ npm start