Code Monkey home page Code Monkey logo

xusos / py-novel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dkvirus/py-novel

1.0 1.0 0.0 10.57 MB

看小说。服务端:【Python+Flask+Mariadb】、【Node+Express+Mariadb】;客户端:【Vue+iview】、【微信小程序】、【Android原生开发(Java)】、【Flutter+Dio】、【Taro+Typescript】

License: MIT License

Python 5.40% JavaScript 16.23% HTML 24.35% Vue 0.90% Java 13.79% Objective-C 0.86% Dart 14.27% CSS 2.58% TypeScript 10.87% TSQL 10.75%

py-novel's Introduction

PY-NOVEL

看小说。

起源

为什么整这个项目?

工作中经常会学习一些新技术,通常情况下,没有实践过,过一段时间就会忘记,徒增学习成本。

dk 本人很喜欢看小说,so,开了这个工程,将遇到的感兴趣的技术、框架都怼一遍实践项目。古代将军练兵讲究以战养兵,进步神速,dk 效仿之。

技术栈

  • Python【Python3+Flask+Mariadb】:转换数据接口。笔趣阁广告多、排版也很简陋,http请求返回的响应是 html 字符串,通过 Python 做中间层处理,正则表达式匹配 Html 字符串中有用的数据:小说名称、作者、内容等信息,提供统一的数据接口,为 Web 端和移动端提供数据来源;python服务端详情
  • Node【Node+Express+Mariadb】:为了适用多端,重构服务端接口,不改动之前 Python 实现版本,使用 node 实现 /api/v2 的接口;node服务端详情
  • Vue:Web 端展示选用 Vue 框架,UI 选用 iview 框架,已适配手机浏览器阅读;浏览器客户端详情+图示
  • 微信小程序:看小说大多数情况还是在手机上看的,移动客户端再开发一个微信小程序端;小程序客户端详情+图示
  • 移动端:Android 原生-Java;安卓原生Java端详情+图示
  • 移动端:Flutter。移动端混合开发Flutter详情+图示
  • 移动端:Taro。(兼容 h5 版本)移动端混合开发Taro详情+图示
  • 移动端:React-native。
  • 移动端:Weex。
  • 移动端:Android 原生-Kotlin。
  • 移动端:IOS 原生-swift。

二维码

小程序二维码,扫一扫,直接看!

小程序二维码

页面展示

image.png

image.png

image.png

image.png

更新日志

latest: 开发完 Taro 版公羊阅读。

更新日志

目录结构

|-- py-novel
    |-- client_mobile_flutter       # 移动端开发,flutter 框架
    |-- client_mobile_miniapp       # 移动端开发,微信小程序
    |-- client_mobile_rn            # 移动端开发,react-native 框架
    |-- client_mobile_taro          # 移动端开发,Taro 框架
    |-- client_web_spa_vue          # web端,vue单页应用
    |-- server_node_express         # node 提供数据接口 /api/v2
    |-- server_python               # python 提供数据接口 /api/v1

部署

本地写的 shell 脚本,一键部署。有几点需要说明:

  • python 服务单独在云主机(centos7)运行 $ python3 index.py,当退出 shell 时服务也会断开。解决方法为将 index.py 做成系统服务,使用 systemctl 统一管理;《自定义系统服务》
  • 一键部署包括将本地文件传输到云主机,使用的是 ssh 协议,但前提要设置免密登录。《设置 ssh 免密登录》

py-novel's People

Contributors

darkkille avatar dkvirus avatar

Stargazers

 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.