Giter Site home page Giter Site logo

yygqxy-server's Introduction

粤语歌曲谐音-后端程序

app.js

用于启动后端程序,提供前端需要的API接口。

TODO

  • 完成获取歌曲列表API接口逻辑
  • 获取歌曲列表接口-支持条数查询
  • 反馈接口
  • 完成获取歌曲详情API接口逻辑
  • 优化spider.js爬取算法,通过歌手爬取更多歌曲数据
  • 优化spider2.js爬取算法,爬取的部分内容有问题
  • 支持记录首页热门歌曲模块(根据点击量排序)
  • 支持歌手名查询
  • 新增登录、微信获取code接口
  • 新增添加、取消、获取收藏接口
  • 新增3rd_session验证中间件
  • 修复getCollections无数据时报错
  • 退出登录接口

spider爬虫脚本

用于给小程序-粤语歌曲谐音爬取相关数据。

spider.js

获取某网站歌曲数据。

spider2.js

获取某网站免费歌曲数据。

spider3.js

根据歌手名获取某网站数据。

TODO

  • 请求并发数控制
  • mongodb存储数据

config.js 文件格式(涉及小程序和服务器配置信息)

const env = 'development';
const Config = {
  development: {
    WeChat: {
      APPID: 'xxx',
      SECRET: 'xxx'
    },
    Server: {
      host: '127.0.0.1',
      port: 5000
    },
    MongoDB: {
      host: 'localhost',
      port: '27017',
      dbName: 'yygqxy',
      username: 'admin',
      password: '123456'
    }
  },
  production: {
    WeChat: {
      APPID: 'xxx',
      SECRET: 'xxx'
    },
    Server: {
      host: '127.0.0.1',
      port: 5000
    },
    MongoDB: {
      host: '127.0.0.1',
      port: '27017',
      dbName: 'yygqxy'
    }
  }
};

module.exports = Config[env];

yygqxy-server's People

Contributors

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