I made a gallery in React that allows users to upload, delete, and like images in the gallery. I used axios to allow these functions to take place. The project is divided into components for better organization.
- Create a database called
react-galleryin Postico. - Run the queries in the database.sql file.
- Run
npm installin your terminal. - Run
npm run serverin your terminal. - Run
npm run clientin your terminal. - Click the link to open up the browser after running the client.
- Add an image to the gallery using the form inputs on the top of the screen.
- View the image description by clicking on the image, to view the image again click on the description.
- Like an image in the gallery using the like button under the image.
- Delete an image from the gallery using the delete button under the image.
Thanks to Prime Digital Academy who equipped and helped me to make this application a reality.