-
Go to the selected media folder and type:
tree -Jf > ../../src/media.js
to generate JSON list of files in directories -
Edit
/src/media.js
file and addmodule.exports =
to the beginning of the file (so the module exports the whole Array of Objects) -
Change directories in
/src/config.js
to match your media directory.
Example: if your folder's in/public/media
, type../media/
In the project directory, you can run:
Installs the project's dependencies
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
This project was bootstrapped with Create React App.