Skip to content

guillaumefrd/es-express-api-react

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

In api, populate and es folders, run:

> npm install 

Launch the API

In the api folder, run:

> npm start 

or

> npm run dev 

Usage

In your web brower:

Don't forget to launch elasticsearch and modify connection.js if needed.

Scraping

To update the scraping, go in populate folder and run:

> node caradisiac.js

It will update the file cars.json.

Delete the previous data, by running

> node delete.js

in es folder

Then open localhost:8000/populate to repopulate.

React Application

Usage

Go into my-app folder and run:

> npm start

Then open your web browser and go to localhost:3000.

The page will display the list of cars with the biggest volumes lower than 1000.

Click on "More information" to go directly to the caradisiac page for the specific model you've chosen.

Screenshot

screenshot

About

Workshop about api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 67.3%
  • HTML 24.1%
  • CSS 8.6%