# Yunzan **Repository Path**: Nemoooon/yunzan ## Basic Information - **Project Name**: Yunzan - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-12 - **Last Updated**: 2021-08-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # hackernews-async-ts [Hacker News](https://news.ycombinator.com/) showcase using typescript && egg ## QuickStart ### Development ```bash $ npm i $ npm run dev $ open http://localhost:7001/ ``` Don't tsc compile at development mode, if you had run `tsc` then you need to `npm run clean` before `npm run dev`. ### Deploy ```bash $ npm run tsc $ npm start ``` ### Npm Scripts - Use `npm run lint` to check code style - Use `npm test` to run unit test - se `npm run clean` to clean compiled js at development mode once ### Requirement - Node.js 8.x - Typescript 2.8+ npm run model 这个参考 https://www.lizenghai.com/archives/49684.html http://toobug.s.f2er.info/article/amp/sequelize-tricks.html 有点坑爹 注意.modelSequelizeConfig配置生成model 如下配置参考 ``` ts # // timestamps: false, //去除createAt updateAt # // freezeTableName: true, 使用自定义表名 # // // 实例对应的表名 # // tableName: 'user', # // // 如果需要sequelize帮你维护createdAt,updatedAt和deletedAt必须先启用timestamps功能 # // // 将createdAt对应到数据库的created_at字段 # // createdAt: 'created_at', # // // 将updatedAt对应到数据库的updated_at字段 # // updatedAt: 'updated_at', # // //And deletedAt to be called destroyTime (remember to enable paranoid for this to work) # // deletedAt: false, //'deleted_at', # // //删除数据时不删除数据,而是更新deleteAt字段 如果需要设置为true,则上面的deleteAt字段不能为false,也就是说必须启用 # // paranoid: false ```