An open API service indexing awesome lists of open source software.

https://github.com/codexu/pin-analysis

《前端使用爬虫技术实现掘金沸点骗赞》示例
https://github.com/codexu/pin-analysis

nestjs

Last synced: 10 months ago
JSON representation

《前端使用爬虫技术实现掘金沸点骗赞》示例

Awesome Lists containing this project

README

          


Nest Logo

[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
[circleci-url]: https://circleci.com/gh/nestjs/nest

A progressive Node.js framework for building efficient and scalable server-side applications.



NPM Version
Package License
NPM Downloads
CircleCI
Coverage
Discord
Backers on Open Collective
Sponsors on Open Collective

Support us


## Description

[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.

## Installation

```bash
$ pnpm install
```

## Running the app

```bash
# development
$ pnpm run start

# watch mode
$ pnpm run start:dev

# production mode
$ pnpm run start:prod
```

## Test

```bash
# unit tests
$ pnpm run test

# e2e tests
$ pnpm run test:e2e

# test coverage
$ pnpm run test:cov
```

## Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).

## Stay in touch

- Author - [Kamil Myśliwiec](https://kamilmysliwiec.com)
- Website - [https://nestjs.com](https://nestjs.com/)
- Twitter - [@nestframework](https://twitter.com/nestframework)

## License

Nest is [MIT licensed](LICENSE).

---

## 初始化项目

使用 nest 创建一个项目,首先先安装 Nest Cli:

```
$ npm i -g @nestjs/cli
```

然后通过 new 命令初始化项目目录:

```
$ nest new pin-anailysis
```

随后选择你喜欢的包管理器进行安装依赖,然后手动再安装几个后续需要使用到的依赖:

- @nestjs/schedule 定时任务
- puppeteer 爬虫
- @node-rs/jieba 关键词分析
- @nestjs/typeorm、typeorm、mysql2 数据库

import { load, extract } from '@node-rs/jieba';

分析沸点关键词和权重