markdown-test avatar
markdown-test

Deprecated

Pricing

Pay per usage

Go to Store
markdown-test

markdown-test

Deprecated

Developed by

cat

cat

Maintained by Community

0.0 (0)

Pricing

Pay per usage

1

Total users

3

Monthly users

1

Last modified

2 years ago

.dockerignore

# configurations
.idea
# crawlee and apify storage folders
apify_storage
crawlee_storage
storage
# installed files
node_modules

.editorconfig

root = true
[*]
indent_style = space
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf

.eslintrc

{
"extends": "@apify",
"root": true
}

.gitignore

# This file tells Git which files shouldn't be added to source control
.idea
node_modules
storage

Dockerfile

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

INPUT_SCHEMA.json

{
"title": "Input schema for the empty project actor.",
"type": "object",
"schemaVersion": 1,
"properties": {
"test": {
"title": "Test",
"type": "string",
"description": "This is test input field description.",
"editor": "textfield"
}
},
"required": []
}

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

{
"name": "project-empty",
"version": "0.0.1",
"type": "module",
"description": "This is a boilerplate of an Apify actor.",
"engines": {
"node": ">=16.0.0"
},
"dependencies": {
"apify": "^3.0.0",
"crawlee": "^3.0.0"
},
"devDependencies": {
"@apify/eslint-config": "^0.3.1",
"eslint": "^8.20.0"
},
"scripts": {
"start": "node main.js",
"lint": "./node_modules/.bin/eslint ./src --ext .js,.jsx",
"lint:fix": "./node_modules/.bin/eslint ./src --ext .js,.jsx --fix",
"test": "echo \"Error: oops, the actor has no tests yet, sad!\" && exit 1"
},
"author": "It's not you it's me",
"license": "ISC"
}