CodingCrush / Weeklyreport
Licence: mit
基于Flask的开源周报系统,快速docker部署
Stars: ✭ 102
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Weeklyreport
Booklibrary
📚Simple Book library application written on flask with SQLite database.
Stars: ✭ 98 (-3.92%)
Mutual labels: sqlalchemy, flask, bootstrap
Tedivms Flask
Flask starter app with celery, bootstrap, and docker environment
Stars: ✭ 142 (+39.22%)
Mutual labels: sqlalchemy, flask, bootstrap
Python crawler
It's designed to be a simple, tiny, pratical python crawler using json and sqlite instead of mysql or mongdb. The destination website is Zhihu.com.
Stars: ✭ 45 (-55.88%)
Mutual labels: sqlalchemy, flask
Flask Jwt Router
Flask JWT Router is a Python library that adds authorised routes to a Flask app.
Stars: ✭ 43 (-57.84%)
Mutual labels: sqlalchemy, flask
Python Api Development Fundamentals
Develop a full-stack web application with Python and Flask
Stars: ✭ 44 (-56.86%)
Mutual labels: sqlalchemy, flask
Fuse
A simple file sharing web service in Vue.js and Flask
Stars: ✭ 7 (-93.14%)
Mutual labels: flask, bootstrap
Cookiecutter Pyramid Talk Python Starter
An opinionated Cookiecutter template for creating Pyramid web applications starting way further down the development chain. This cookiecutter template will create a new Pyramid web application with email, sqlalchemy, rollbar, and way more integrated.
Stars: ✭ 64 (-37.25%)
Mutual labels: sqlalchemy, bootstrap
Flask Whooshee
Customizable Flask - SQLAlchemy - Whoosh integration
Stars: ✭ 66 (-35.29%)
Mutual labels: sqlalchemy, flask
Job Web Demo
Python Web 实战项目,Flask + Jinja2 + Bootstrap 开发的招聘网站
Stars: ✭ 87 (-14.71%)
Mutual labels: flask, bootstrap
Ecache
👏👏 Integrate cache(redis) [flask etc.] with SQLAlchemy.
Stars: ✭ 28 (-72.55%)
Mutual labels: sqlalchemy, flask
Flask Bones
An example of a large scale Flask application using blueprints and extensions.
Stars: ✭ 849 (+732.35%)
Mutual labels: sqlalchemy, flask
Indico
Indico - A feature-rich event management system, made @ CERN, the place where the Web was born.
Stars: ✭ 1,160 (+1037.25%)
Mutual labels: sqlalchemy, flask
Flaskdash
Flask starter app featuring CoreUI and the FlaskUser module.
Stars: ✭ 90 (-11.76%)
Mutual labels: flask, bootstrap
Swarmops
Manage swarm clusters to provide a more concise and compact intermediate layer web application with swarm ui.
Stars: ✭ 63 (-38.24%)
Mutual labels: flask, bootstrap
Flask Sqlalchemy Booster
Collection of utilities and decorators which add extensive querying and serializing capabilities to Flask SQLalchemy models
Stars: ✭ 5 (-95.1%)
Mutual labels: sqlalchemy, flask
Globaleaks
GlobaLeaks is free, open source software enabling anyone to easily set up and maintain a secure whistleblowing platform.
Stars: ✭ 832 (+715.69%)
Mutual labels: sqlalchemy, bootstrap
Ziggurat foundations
Framework agnostic set of sqlalchemy classes that make building applications that require permissions an easy task.
Stars: ✭ 67 (-34.31%)
Mutual labels: sqlalchemy, flask
截图(V0.1):https://blog.mcloud.fun:81/post/weekly-report/
#加入docker-compose
可以在新机器上, 直接一键启动了: docker-compose up
加入entrypoint.sh脚本: 1 启动时先等待pg启动 2 判断pg里是否已经有表 3 如果没有表, 初始化表 4 用gunicorn 启动 app
快速运行
-w <N>
为开启的gunicorn worker进程数
-p 8000:80
主机通过8000端口访问
git clone https://github.com/CodingCrush/WeeklyReport && \
cd WeeklyReport && \
docker build -t weeklyreport:0.2 . && \
docker run -d \
--restart=unless-stopped \
--name weeklyreport-server \
-p 8000:80 \
-v /etc/localtime:/etc/localtime:ro \
-v $PWD:/opt/weeklyreport \
weeklyreport:0.2 \
gunicorn wsgi:app --bind 0.0.0.0:80 -w 2 --log-file logs/awsgi.log --log-level=DEBUG
更新说明
V0.2: 简化了部署步骤
配置说明
- 配置数据库 数据库默认使用sqlite,也可以使用postgres container,cd到postgres目录下,pull镜像,启动。 数据库URI地址由数据库名、用户名、密码、主机、端口号组成。
SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:[email protected]/wr_prd'
步骤见postgres目录下的readme.md
- 配置config.py
DEPARTMENTS
: 这个元组为部门列表,第一次打开时自动初始化到数据库中,用户在注册时可以选择部门。
MAIL_USERNAME
: 用来发送邮件通知的邮箱账号
MAIL_PASSWORD
: 用来发送邮件通知的邮箱密码
后台管理
第一次注册的用户为超级管理员,永远有登录后台的权限。 管理员可以修改其他角色
默认用户角色为EMPLOYEE
,仅具有读写自己的周报的权限,
MANAGER
可以读写周报,并查看本部门所有周报。而HR可以读写周报,并查看全部门所有周报。
ADMINISTRATOR
在HR基础上增加了进入后台的功能。
QUIT
用来标识离职后的员工,禁止其登录。
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].