https://github.com/weijiangan/jobtest-pulseid
https://github.com/weijiangan/jobtest-pulseid
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/weijiangan/jobtest-pulseid
- Owner: weijiangan
- Created: 2019-09-24T05:14:17.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T00:40:52.000Z (over 2 years ago)
- Last Synced: 2025-02-11T08:48:22.720Z (4 months ago)
- Language: JavaScript
- Size: 1.12 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Minimal Unsplash Clone
Link to demo: https://epic-dubinsky-908725.netlify.com/
A client to Unsplash API written in React 16.9 with Hooks and redux-thunk. This is an assignment I did for Pulse iD's job interview. It incorporates a basic set of features as seen in Unsplash including browsing photos, searching and narrow down by a subset of predefined tags, complete with infinite scrolling pagination mechanism.
I took this opportunity to learn the Redux ducks pattern and to test my front end behavior with react-testing-library.
## Prerequisite
Before building or developing, please obtain an API key from https://unsplash.com/developers and insert your keys in a file named `.env` in the root directory. Refer to `sample.env` for format. Alternatively you can pass the keys as env vars via your command line.## Building
```sh
$ yarn
$ yarn run build
```## Development
```sh
$ yarn
$ [PORT=] yarn run start:dev # start dev server in nodemon with React HMR
```## Testing
```sh
$ yarn test
$ yarn run test -u # <-- run this to update snapshot
```