Skip to content

PavelYatskevich/simple-search-with-BE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple search with http server

This project was bootstrapped with Create React App.

Development steps:

  1. Created simple react app
  2. Added simple http server to send request to external link, used next libraries: express, http, cors, request.
  3. Added search and images components
  4. Added request to local server with static query
  5. Render images from response
  6. Added search input to search images
  7. Added local state to App component and pass the props to the Search and Images components(decide to make components dumb)
  8. Commit a87bd3c3db89eb2f6e9555f369585c37646bf2a1 contain solution with react context

TODO:

  1. add typescript
  2. add tests
  3. improve styles

How to run

  1. yarn install - install node modules
  2. yarn server - run local server
  3. yarn start - start app

Available Scripts

In the project directory, you can run:

yarn 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.

yarn server

Runs the local server at http://localhost:8080/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published