Giter VIP home page Giter VIP logo

mynew's Introduction

myNew

介绍

这是一个简单的最新资讯网站,现有频道有:军事、教育、科技、健康、星座、娱乐、体育、财经。数据来源于阿里云Api市场的新闻Api。

效果预览

首页图

系统架构

本项目暂时采用SSM + MySql + Jsp的技术作支撑,后期有时间可能会将项目使用SpringBoot重构。

项目部署

项目的部署主要需要注意两点:

  • 找到sql文件(位于项目的DB文件夹下),将sql导入到mysql数据库中
  • 需要购买阿里云api,这个api有免费的使用次数。如果使用其他新闻Api可能需要修改代码的处理逻辑
  • 上面两步搞定后需要对db.example.properties和api.example.properties重命名为db.properties和api.properties。

注意

  • 首页的轮播图是需要修改数据库中的数据,需要将数据库中的t_news表的字段is_show_banner由0改为1并且该条数据的pic必须有值且能访问。

项目进度

(1)项目基本搭建
(2)项目由servlet+jsp转成ssm
(3)完成postgresql数据库的构建
(4)从阿里云api获取数据,完成postgresql数据的填充
(5)使用ssm完成新闻的展示,但是数据暂时只是本地。
(6)数据可以从网络api中获取
TODO......

项目期望

(1)freemarker完全替代jsp
(2)使用freemarker完成网页静态化
(3)使用定时任务,定时从阿里云api获取新闻数据
(4)接入newsql(postgresql),放弃mysql(暂时放弃)
(5)引入Spring Data-JPA,简化postgresql数据库的操作(不能再使用mybatis,需要引入其他orm框架,这点实现有待考虑。)(暂时放弃)
(6)在阿里云或者腾讯云部署上线,以后不用再看满天广告的新闻了。
(7)今天试玩了一下spring boot,觉得非常有意思。看后期有没有机会重构。
TODO......


以上均为很久以前的期望,后期考虑是否实现

存在问题

(1)手机端适配存在问题
(2)部分新闻内容夹杂着图片,影响列表新闻内容摘要的展示。

mynew's People

Contributors

lsc95 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.