GithubHelp home page GithubHelp logo

minska-br / recipe-web-scraping Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 185 KB

API developed for web crawling using Node with Typescript.

License: GNU General Public License v3.0

TypeScript 100.00%
node typescript puppeteer webscraping puppeteer-cluster

recipe-web-scraping's Introduction

Web Crawler API

API developed for web crawling using Node with Typescript.

RequirementsEnvironmentInstalationHow to runApi documentation

Getting Started

These instructions will allow you to install and run the web scrapping api, at Api documentation you can run see more about the endpoints.

Requirements

Environment

Example of how .env file should be structured:

PORT=4390
HOSTNAME=www.example.host.com

Instalation

To install all dependencies just run the following command:

npm install

How to run

After install step we have three options related with the running process:

Development mode

This case should be used during development time, after each command to save files the project server will restart with the new code.

npm run start:dev

Stage mode

Outside of the development process, this mode is meant for people who want to test requests and analyze logs without having to change files.

npm run start

Obs: This way, changing and saving the files will not restart the server with the latest updates. To do this, restart the server manually or use development mode.

Production mode

This is the execution mode aimed at the production environment, it will generate a set of optimized files so that the server doesn't suffer from impaired memory performance.

npm run start:prod

This script will remove the /build directory and creates a new one with all the transpiled files.

Api documentation

This project has all its endpoints documented in Postman as a shared collection, to get a copy of its endpoints:

Run in Postman


Thanks and good tests 🎉

bye

recipe-web-scraping's People

Contributors

barreto avatar thalees 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.