Code Monkey home page Code Monkey logo

midwayjs-hooks-movie's Introduction

基于 Midwayjs 一体化的电影网站 - 全栈项目

Screenshot

关于

基于 Midwayjs 一体化方案实现 koajs-movie 电影网站,该方案是以 Midway Hooks 为主函数式全栈框架,值得一提的是该项目中使用其组件 @midwayjs/koa 以 Koa 作为上层框架作为 Http 服务。相较于 koajs-movie 的实现该方案极大简化了接口开发,利用函数式替代了 MVC 开发模式,且在这样的前后端一体化应用中,接口调用也及其简单,只需要导入函数 API 直接调用即可。

相较于 koajs-movie 的方案

  • 使用 Midwayjs hooks 替代 Koa
  • 使用 Prisma 替代 mongoose
  • 使用 Vue 替代模板引擎 Pug
  • 使用 Element Plus 替代 Bootstrap

技术栈

项目构建

  • npm run dev: 启动开发服务器
  • npm run build: 构建用于生产的应用
  • npm run start: 生产模式下运行项目

目录结构

  • src: 源代码:包括后端和前端
    • api: 后端代码
    • components: 前端代码 - 组件
    • layout: 前端代码 - 布局
    • router: 前端代码 - 路由
    • store: 前端代码 - 状态
    • utils: 前端代码 - 工具
    • views: 前端代码 - 视图
  • public: 静态文件
  • midway.config.ts: Midwayjs 配置
  • tailwind.config.js: Tailwind 配置
  • index.html: 入口文件

贡献者

huel129
huel129

🎨 🤔 📖 💻 🐛

midwayjs-hooks-movie's People

Contributors

allcontributors[bot] avatar savoygu avatar

Watchers

 avatar  avatar

Forkers

yzkzm

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.