Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rickyxume/postgre-flask-hrms

一个基于 PostgreSQL 和 Flask 框架的人力资源管理系统 Demo
https://github.com/rickyxume/postgre-flask-hrms

Last synced: 5 days ago
JSON representation

一个基于 PostgreSQL 和 Flask 框架的人力资源管理系统 Demo

Awesome Lists containing this project

README

        

# Postgre-Flask-HRMS
一个基于 PostgreSQL 和 Flask 框架的人力资源管理系统 Demo

## 数据库迁移

````shell
flask db init
flask db migrate
flask db upgrade
flask shell
from app.models import Employee
from app import db
admin = Employee(email="[email protected]",username="Admin",password="adminpassword",is_admin=True)
db.session.add(admin)
db.session.commit()
````

## 环境变量设置

在运行应用程序之前,请确保设置了FLASK_CONFIG和FLASK_APP环境变量:

```shell
set FLASK_CONFIG=development
set FLASK_APP=run.py
flask run
```

> * Serving Flask app "run"
> * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)