Skip to content

jguipi/appartment-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Appartment scraper script

Simpson house

Getting started

Introduction

Hi! this is an apartment scrapping app that will help people found an apartment. With this script you can add criteria and it will generate URL that you can send to yourself via Sendgrid. It's build with Koa & Typescipt starter.

What is KOA?

Koa is a new web framework designed by the team behind Express, which aims to be a smaller, more expressive, and more robust foundation for web applications and APIs. By leveraging async functions, Koa allows you to ditch callbacks and greatly increase error-handling. Koa does not bundle any middleware within its core, and it provides an elegant suite of methods that make writing servers fast and enjoyable.

Setup (windows)

1- Download and Install the latest LTS version of nodeJS

2- Choose you prefered IDE. I recommendVisual Studio Code or Webstorm

3- Clone this repo on your pc

4- Open a terminal and execute : npm install

5- Download and unzip the latest (Redis version)[https://github.com/dmajkic/redis/downloads] then start the redis server

6- Create a .env file at the root of your project and create these variables :

SEND_MAIL_FROM = [email protected]

SEND_MAIL_TO = [email protected]

NODE_ENV = development

5- Run the app with npm run serve and you will get generated link with a few recommandation : Link

url

6- Enjoy 😊!

Setup Sendgrid (Optional)

1- Create a Sendgrid account and follow the get started guide.

2- Add these variable to your .env file at the root of your project. You can find these value from SMTP relay setup in Sendgrid

SENDGRID_USERNAME =

SENDGRID_PASSWORD =

3- Change NODE_ENV to production

4- Enjoy :)

Info

Website scraping from

  • Kijiji
  • craigslist
  • centris
  • others

Development language, framework and technologie

  • Koa
  • TypeScript
  • Node JS
  • Express JS
  • Nodemailer
  • Redis

Librarie

Shout out

  • Thx to Alex G. for the help

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published