Code Monkey home page Code Monkey logo

online-reader's Introduction

在线小说阅读

在线小说阅读器,前端使用React框架,后端使用Node.js(爬取http://www.snwx8.com/ 的小说内容)。

示例地址

运行方式:

    $ npm installl
    $ npm run build
    $ node ./app.js

浏览器输入:http://localhost:4396 查看

本地调试:

    $ npm install
    $ node ./webpack-dev-server.js
    $ node ./app.js

修改代码后自动编译

浏览器输入:http://localhost:8999 查看

运行效果:

http://web-site-files.ashshen.cc/gitHub/online-reader-preview.gif

electron:

electron可以将web网页打包成可在PC端运行的软件,关于electron。

首先你需要切换分支到electron。

在本地运行electron: 你需要修改./src/js/utils/api/api.jsAPI_ROOT的值为http://localhost:4396。然后:

    $ npm install
    $ node ./app.js
    $ npm start

即可。

编译打包electron:(使用electron-packager) 修改代码同上。

    $ npm install
    $ node ./app.js
    (mac)$ npm run pack-mac
    (win32)$ npm run pack-win32
    (linux)$ npm run pack-linux
    (all)$ npm run pack

打包后会在项目根目录下新出现一个文件夹,里面包含运行文件。

online-reader's People

Contributors

ash-sc avatar

Watchers

 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.