# TodoList **Repository Path**: mocus/todo-list ## Basic Information - **Project Name**: TodoList - **Description**: No description available - **Primary Language**: Unknown - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-03-21 - **Last Updated**: 2022-08-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # TodoList project [![star](https://gitee.com/mocus/todo-list/badge/star.svg?theme=dark)](https://gitee.com/mocus/todo-list/stargazers)[![fork](https://gitee.com/mocus/todo-list/badge/fork.svg?theme=dark)](https://gitee.com/mocus/todo-list/members) 一款精简的ToDoList,前后端分离(Django+Vue) 使用Celery实现任务提醒 ## 项目体验地址 http://todolist.hinak0.xyz ## 后端部署指南 ### Docker部署 在linux下面的/data目录下拉取仓库 ```shell git clone https://gitee.com/mocus/todo-list.git cd todo-list docker-compose build docker-compose up -d ``` ### 手动部署 ```shell git clone https://gitee.com/mocus/todo-list.git cd todo-list/todo #如无db.sqlite3 python .\manage.py makemigrations python .\manage.py migrate #启动服务 python .\manage.py runserver #启动celery celery -A todo worker -l info -P eventlet (windows) celery -A todo worker -l info (Linux) #启动celery定时任务 celery -A todo beat -l info ``` ### celery设置 默认使用redis作为服务 在 todo/settings.py 中修改CELERY_BROKER_URL,CELERY_RESULT_BACKEND字段 ``` 'redis://:{密码}@{ip地址}:{端口}/{db}' CELERY_BROKER_URL = 'redis://:mocus123@42.193.125.200:6379/3' CELERY_RESULT_BACKEND = 'redis://:mocus123@42.193.125.200:6379/4' ``` ### 邮箱提醒设置 在 push/email 字段里,修改sender,password字段,然后重新启动服务 ## 前端 代理地址: ``` proxy: { '/api/': { target: 'serverUrl', }, '/auth/': { target: 'serverUrl', }, '/push/': { target: 'serverUrl', }, } ``` ## 开发指南 [API Reference](api.md)