Git Product home page Git Product logo

p2p's Introduction

一个基于 python 的 flask 框架的资讯网站

1 背景介绍

该比赛要求参赛者开发一款数据舆情产品,帮助用户了解 P2P 行业现状。本人在比赛中负责网站的设计、开发和部署。团队最终排名第2。涉及内容:

  • 前端:HTML5 + CSS + JavaScript+JSON
  • 后台:Python轻量级Web应用框架Flask

2 项目基本介绍

  • 项目介绍PPT
  • 本项目主要是一个展示数据的网站。
  • 数据来源是其它三位队友爬取数据后处理得到的,他们的项目在 others 目录中。
  • 本项目数据源在 static/data 目录中,项目启动前需要将它们导入到 mongodb 数据库中。

3 QuickStart

3.1 安装环境

  1. 安装 python 2.7
    下载 python 安装文件,安装后配置系统环境变量。
    可参考《Flask入门_Windows下安装》

  2. 安装 flask
    命令行运行 pip install flask
    可参考《Flask入门_Windows下安装》

  3. 安装 pymongo
    命令行运行 pip install pymongo

  4. 安装mongodb 数据库

3.2 启动项目

  1. 在 mongodb 目录的 bin 目录中执行 mongod.exe 文件。
    C:\software\mongdb3.6.3\bin>mongod --dbpath C:\software\mongdb3.6.3\db

  2. 将数据导入到 mongodb 数据库中。
    项目目录下运行 data_to_mongodb.py 文件, 命令行输入 python data_to_mongodb.py

  3. 启动项目。
    项目目录下运行 run.py 文件, 命令行输入 python run.py

  4. 访问项目
    输入 http://localhost:8086 进行访问。

4 效果展示

访问地址: http://119.29.100.53:8086/

一个测试账号 用户名:test 密码: 123

5 后续项目

zsw 是基于该项目的一个简化版本,但是增加了一些帖子评论等功能。

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.