Skip to content

dsandor87/pixxie

Repository files navigation

React Unsplash

React Unsplash is photo search webapp made in React which uses Unsplash JSON APIs for photo search. A clone app of https://unsplash.com the most powerful photo engine in the world. Trying to make the unplash like UI and add functionality as much as possible. Completed UI screenshots

Main search UI

Prerequisites

You are required to have Node.js installed to run the app locally.

Getting Started

Install unsplash-js (github)

npm i --save unsplash-js

Creating a developer account

To access the Unsplash API, first register as a developer.

Registering your application

Once your account has been registered for the API, log in -> go to the Developers page -> Go to "Your Applications"-> "New Application" and fill in the required details.

SignUp or Login in Unsplash. Go to API/devlopers -> Documentation. Then Register your app to get the API key and secret.

API Usage

Make a new .env file and do the following

 API_KEY = your_api_key
 API_SECRET = your_api_secret

Usage

# install all dependency
~/ npm install

# run
~/ npm run dev 

Formatting Code

~/ npm run format 

Clearing Build

~/ npm run clear 

Contribution

The devlopement of the App is still in progress. Only some part is implemented. You can help with code contribution to add more functionality in the App.

License

React Unplash is available under the MIT license. See the LICENSE file for more info.

Important

Unplash is a registered trademark. This project is just for learning purposes and should be treated as such.

Available Scripts

In the project directory, you can run:

npm start

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.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

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.

npm run eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.