preface
This is my 100th blog post. I have chosen M&OAS, an OA platform written and designed by myself. The project will continue to be updated iteratively.
- Github
- Document
The UI preview
Introduction to the
The first time I designed a product, I wanted to try to expand my product design thinking. Of course, it is undeniable that the style of product design may be the same, but I only get inspiration and innovation in functions and better user experience.
M&OAS project (M & Office Automation Service) is committed to developing perfect automated Office services and advocating a more convenient and fast Office environment. Currently (2020-10-01) is version 1.0.1.
Feature list
The current version contains the following versions:
- Dashboard: Data visualization
- Process handling: process submission and approval
- Attendance processing: attendance inquiry, attendance exception filling, vacation application
- Work report: fill in daily work report, content visible to the project team
- User configuration: Allows you to query and modify users and project teams(Interconnecting with an AD domain is recommended.)
- Knowledge base:To develop
- System Settings: Personal information Settings, personal security information Settings and system data configuration visible to the administrator
At present, due to time problems, the knowledge base is in the stage of development, and will be supplemented and improved later.
The front end of the project adopts Layui as the basic framework, and adopts OKadmin2.0 as the secondary framework development to realize the whole front end project.
The project backend uses Django as the base framework and is developed using django-Rest Framework as a nested framework to implement the entire backend project.
The project adopted front-end and back-end separation, and used MySQL database as Object Relational Mapping (ORM).
Depend on the installation
The back-end project
You may need Python3.8+ to deploy a back-end project, and use Python to install the dependent libraries:
python3 -m pip install -r requirements.txt
Copy the code
Install MySQL and create database. Replace databaseName with the databaseName you want to customize:
CREATE DATABASE databaseName DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
Copy the code
Write the relevant data configuration to the configuration file:
vi ./conf/conf.py
Copy the code
Generate data table:
python3 maigration.py
Copy the code
Configure email notification, or log in to the platform using an administrator account to modify the configuration.
vi ./conf/conf.json
Copy the code
Start the
Try to start:
Python3 manage. Py runserver then executes 0.0.0.0:8000Copy the code
UWSGI activation:
uwsgi --ini uwsgi.ini
Copy the code
UWSGI stop:
uwsgi --stop uwsgi.pid
pkill -9 uwsgi
Copy the code
Pay attention to the front-end code, which is packaged before distribution first, and can be proxyed using Nginx servers.
More deployment questions can be found here.
The contents of Juejin. Im are not specified,
For more detailed documentation, go to the documentation page.