开始制作国产的 scratch

首先分析下API和数据格式:

https://api.scratch.mit.edu/proxy/featured  GET   23.235.37.162:443

返回数据与对应栏目:

community_newest_projects                     

community_most_remixed_projects            What the Community is Remixing  

scratch_design_studio                               Scratch Design Studio - In The Spotlight

curator_top_projects                                 Projects Curated by -IcyMango- 

community_featured_studios                      Featured Studios

community_most_loved_projects                What the Community is Loving

community_featured_projects                     Featured Projects

https://api.scratch.mit.edu/projects/count/all  GET    23.235.37.162:443

{"count":15715662}

https://scratch.mit.edu/accounts/login/  登录

{username: "laiqun007@gmail.com", password: "020201aa", useMessages: true}

返回

[{"username": "laiqun007@gmail.com", "num_tries": 1, "success": 0, "msg": "u7528u6237u540du6216u5bc6u7801u4e0du6b63u786e", "messages": [], "id": null}]

设计数据库:

project表 生成时type为project   

id thumbnail_url title creator love_count remixers_count gallery_id curator_name

编号 URL地址 标题 创作者 喜欢数 再创作数 属于的画廊 监护者名字(展览策划人 就当作小编推荐吧!)

gallery表,生成时type为gallery 与project表的关系为1:N

id thumbnail_url title

打算先用mongose 实现

下载mogoDB  2008 R2版本

安装好后在C:Program File目录下,将其bin文件夹加入Path 环境变量

在D盘创建目录datadb

启动mongod -dbpath=d:datadb

搭建前后端开发环境

前端 sublime+各种插件,由于是前端,可以很好的用浏览器进行测试

后台  后端由于看不到界面,我个人还是喜欢用ide方案,写一下,运行一下,发现错误,更改。于是乎祭出微软大帝的vs2013 或者更高版本也可以,然后给它安装NTVS插件

这种时候,有人会跟你玩智商的把戏,就是用各种难用的东西,不会用就是你的智商不够,最典型的是命令行写程序,这是上个世纪50年代的产品,劝君不要上当。重点是原理和你的作品,各种奇怪的命令你的脑袋里什么也留不下的

原文地址:https://www.cnblogs.com/laiqun/p/5664921.html