https://github.com/codexu/pin-analysis
《前端使用爬虫技术实现掘金沸点骗赞》示例
https://github.com/codexu/pin-analysis
nestjs
Last synced: 10 months ago
JSON representation
《前端使用爬虫技术实现掘金沸点骗赞》示例
- Host: GitHub
- URL: https://github.com/codexu/pin-analysis
- Owner: codexu
- Created: 2023-10-08T01:18:58.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-08T02:23:34.000Z (over 2 years ago)
- Last Synced: 2025-02-10T22:48:34.876Z (about 1 year ago)
- Topics: nestjs
- Language: TypeScript
- Homepage:
- Size: 92.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[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.
## 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';
分析沸点关键词和权重