markdown-test avatar
markdown-test
Deprecated
View all Actors
This Actor is deprecated

This Actor is unavailable because the developer has decided to deprecate it. Would you like to try a similar Actor instead?

See alternative Actors
markdown-test

markdown-test

jupri/markdown-test

.dockerignore

1# configurations
2.idea
3
4# crawlee and apify storage folders
5apify_storage
6crawlee_storage
7storage
8
9# installed files
10node_modules

.editorconfig

1root = true
2
3[*]
4indent_style = space
5indent_size = 4
6charset = utf-8
7trim_trailing_whitespace = true
8insert_final_newline = true
9end_of_line = lf

.eslintrc

1{
2    "extends": "@apify",
3    "root": true
4}

.gitignore

1# This file tells Git which files shouldn't be added to source control
2
3.idea
4node_modules
5storage

Dockerfile

1# Specify the base Docker image. You can read more about
2# the available images at https://sdk.apify.com/docs/guides/docker-images
3# You can also use any other image from Docker Hub.
4FROM apify/actor-node:16
5
6# Copy just package.json and package-lock.json
7# to speed up the build using Docker layer cache.
8COPY package*.json ./
9
10# Install NPM packages, skip optional and development dependencies to
11# keep the image small. Avoid logging too much and print the dependency
12# tree for debugging
13RUN npm --quiet set progress=false \
14    && npm install --omit=dev --omit=optional \
15    && echo "Installed NPM packages:" \
16    && (npm list --omit=dev --all || true) \
17    && echo "Node.js version:" \
18    && node --version \
19    && echo "NPM version:" \
20    && npm --version
21
22# Next, copy the remaining files and directories with the source code.
23# Since we do this after NPM install, quick build will be really fast
24# for most source file changes.
25COPY . ./
26
27
28# Run the image.
29CMD npm start --silent

INPUT_SCHEMA.json

1{
2    "title": "Input schema for the empty project actor.",
3    "type": "object",
4    "schemaVersion": 1,
5    "properties": {
6        "test": {
7            "title": "Test",
8            "type": "string",
9            "description": "This is test input field description.",
10            "editor": "textfield"
11        }
12    },
13    "required": []
14}

kitten.png

main.js

1// This is the main Node.js source code file of your actor.
2// An actor is a program that takes an input and produces an output.
3
4// For more information, see https://sdk.apify.com
5import { Actor } from 'apify';
6// For more information, see https://crawlee.dev
7// import { CheerioCrawler } from 'crawlee';
8
9// Initialize the Apify SDK
10await Actor.init();
11
12// Get input of the actor (here only for demonstration purposes).
13const input = await Actor.getInput();
14console.log('Input:');
15console.dir(input);
16
17/**
18 * Actor code
19 */
20
21
22// Exit successfully
23await Actor.exit();

package.json

1{
2    "name": "project-empty",
3    "version": "0.0.1",
4    "type": "module",
5    "description": "This is a boilerplate of an Apify actor.",
6    "engines": {
7        "node": ">=16.0.0"
8    },
9    "dependencies": {
10        "apify": "^3.0.0",
11        "crawlee": "^3.0.0"
12    },
13    "devDependencies": {
14        "@apify/eslint-config": "^0.3.1",
15        "eslint": "^8.20.0"
16    },
17    "scripts": {
18        "start": "node main.js",
19        "lint": "./node_modules/.bin/eslint ./src --ext .js,.jsx",
20        "lint:fix": "./node_modules/.bin/eslint ./src --ext .js,.jsx --fix",
21        "test": "echo \"Error: oops, the actor has no tests yet, sad!\" && exit 1"
22    },
23    "author": "It's not you it's me",
24    "license": "ISC"
25}
Developer
Maintained by Community