Skip to content

API developed for web crawling using Node with Typescript.

License

Notifications You must be signed in to change notification settings

minska-br/recipe-web-scraping

Repository files navigation

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