Code Monkey home page Code Monkey logo

story-scraper's Introduction

readme

Requirement

Node 14.x.x

sudo n
  copying : node/14.21.3
  installed : v14.21.3 (with npm 6.14.18)

Running the app

# development
$ npm run start

# watch mode & see the api list
$ npm run dev

Access to see api list http://localhost:3000/api

# production mode
$ npm run start:prod

Execute

SCRAPE STORY

curl -d "@./data/scrape-story.json" -H "Content-Type: application/json"  http://localhost:3000/api/story/scrape

STORY TO MP3

curl -d "@./data/story-to-mp3.json" -H "Content-Type: application/json"  http://localhost:3000/api/transformer/story-to-mp3

STORY TO EPUB

curl -d "@./data/story-to-epub.json" -H "Content-Type: application/json"  http://localhost:3000/api/transformer/story-to-epub

EPUB TO STORY

curl -d "@./data/epub-to-story.json" -H "Content-Type: application/json"  http://localhost:3000/api/transformer/epub-to-story

EPUB TO MP3

curl -d "@./data/epub-to-mp3.json" -H "Content-Type: application/json"  http://localhost:3000/api/transformer/epub-to-mp3

READMORE

Packages

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

After install

Auto eslint

copy .vscode/settings.json
copy tsconfig.eslint.json
reload IDE
npm i nedb retry promisify axios cheerio 

Docker

docker build -t nguyenngockhank/truyen .
docker push nguyenngockhank/truyen
docker run -dp 127.0.0.1:3333:3000 -v ~/Documents/truyendb:/app/db -v ~/Documents/truyenaudio:/app/audio truyen 

story-scraper's People

Contributors

kamilmysliwiec avatar renovate-bot avatar nguyenngockhank avatar sacro avatar dependabot[bot] avatar alsoicode avatar progral avatar mchelen avatar hiagodotme avatar beeman avatar allenfang avatar maximzinovik avatar nosfistis avatar rpihlak avatar rubencodeforges avatar rubiin avatar lambdacasserole avatar blazeu avatar yurykozhenov avatar fanybook avatar schinvendy avatar whitekiwi avatar brunnerlivio avatar konradlinkowski avatar jajaperson avatar elylucas avatar e-watson avatar ben-webantic avatar bashleigh avatar xorik avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.