Giter Site home page Giter Site logo

rss-web's Introduction

rss-web

一个简洁的web版的rss阅读器,vue+vue-router+koa2+sqlite+redis

功能实现:

  • 用户登录注册
  • 分类管理
  • rss管理
  • 文章进行了redis 1小时缓存,不过可以通过右下角的刷新按钮进行手动刷新,刷新进行了频率限制(两次刷新至少间隔10分钟)
  • 后端接口采用cors实现跨域

如何运行:

client:

  • cd client
  • npm install
  • npm run serve //运行客户端,有3个报错没有影响,是eslint不允许console,不会影响执行
  • client目前有两个路由 /login和/home 所以只有这两个有页面显示

server:

  • cd server
  • npm install
  • npm run db_init //初始化数据库和表
  • 开启自己的redis服务(app.js中是默认的127.0.0.1/6379,你可以自行去更改(const redis = Redis.createClient()))
  • node app.js //运行服务端
  • server端的cors限制了域名请求为localhost,有独特的需求可以自行更改,在app.js中(ctx.response.set('Access-Control-Allow-Origin','http://localhost:8080');)

rss-web's People

Contributors

sin1ght avatar

Watchers

James Cloos 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.