Git Product home page Git Product logo

react-image-gallery's Introduction

Getting Started with Create React App

Este proyecto es una galeria de imagenes donde se puede buscar la foto por su nombre y cargar cada vez mas fotos. Fue creado con ### React.Js, ### Node.Js y ### Cloudinary.

esta organizado en dos partes:

  1. La carpeta "my-favorite-pictures" es la parte de frontend con React.
  2. La carpeta "api" es la parte del servidor, creado con NODE y la api que se conecta con Claudinary.com.

Crear una cuenta en Cloudinary

https://cloudinary.com/users/register/free

En el dashboard encontraras las claves para poder conectarte. En el proyecto, carpeta api, crea un archivo llamado .env donde vas a escribir lasclaves:

API_KEY={YOUR_API_KEY} CLOUD_NAME={YOUR_CLOUD_NAME} API_SECRET={YOUR_API_SECRET}

En el terminal ejecuta:

npm install npm run server

Dependencias

Para crear nuestra propia api con NODE hay que instalar varias dependencias como:

npm i axios
npm i express
npm i body-parser
npm i cors
npm i dotenv
npm i nodemon --save dev
npm i eslint

Se puede ver si funciona en localhost:7000/photos en Postman o Chrome.

Run the Frontend

Nota! Asegurate que el Node server (en la carpeta api) esta lanzado.

En la carpeta my-favorite-pictures crea un archivo .env y add an environment variable to point to the local node.js server e.g:

REACT_APP_API_URL=http://localhost:7000

Lanzar la aplicacion

npm install
npm start

La aplicacion deberia abrirse en localhost:3000

Proximamente voy hacer un CRUD para poder editar y borar las fotos.

react-image-gallery's People

Contributors

superco-art avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.