Giter Club home page Giter Club logo

nikolayvv / sreality Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 415 KB

Sreality is an implementation developed entirely in TypeScript and React. It scrapes the first 500 flats for sale from the website https://www.sreality.cz/en, saves them in PostgreSQL database, and shows them on the webpage using pagination.

Dockerfile 2.06% TypeScript 76.79% HTML 9.21% CSS 11.93%
api docker postgresql puppeteer-cluster react typescript web-scraping

sreality's Introduction

Sreality

Sreality is an implementation, that scrapes the first 500 flats for sale from the website https://www.sreality.cz/en, saves them in the database, and shows them on the webpage using pagination. The project's root contains the following components:

  • ./api - The API is developed entirely in TypeScript. It initializes a PostgreSQL database and uses parallel scraping to efficiently scrape and save the first 500 flats for sale from https://www.sreality.cz/en. Of course, as API it also has endpoints, which allow us to interact with the data from the database.
  • ./app - The application is developed in React and TypeScript. It gets and shows with pagination the flats stored in the database by interacting with the API.
  • app.ts - The server is developed in TypeScript using NodeJS and Express. It starts both the application and the API on the same address, but with the difference that the endpoints of the API are in the route /api and the webpage is in the main route /.

Running

You can run the application with Docker by running the following command on the command line and in the root folder of the project:

docker-compose up

After the server is up and running the application can be accessed on the link http://127.0.0.1:8080. Take into consideration that it may take a few seconds for the whole data to be scraped from the webpage and saved into our database.

Authors

  • Nikolay Vasilev

sreality's People

Contributors

nikolayvv avatar

Stargazers

 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.