Giter Club home page Giter Club logo

onestack's Introduction

一站式IT管理系统,包含持续集成、监控、服务器自动化部署,打通开发、运维、测试的边界。为中小企业的IT管理保驾护航。

本地运行开发环境

需要安装PostgreSQL数据库

创建postgres数据库和用户

# 在数据库控制台下执行
create user one;
create database onestack owner one;

安装依赖

git clone https://github.com/itpubs/OneStack.git
cd OneStack

# 安装前端依赖(不要使用npm)
yarn install

# 安装Python依赖
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

数据迁移和创建用户

# 执行数据库迁移
./manage.py makemigrations
./manage.py migrate

# 创建用户,用于登录
./manage.py createsuperuser

运行

./manage.py runserver

效果图

image

部署到生产环境

  • 目前版本不稳定,不建议部署到生产环境;
  • 如果部署的话,建议部署在安全的内网环境,外网通过VPN访问。

代码风格建议

  • 使用类视图代替函数视图
  • 使用form来验证表单

onestack's People

Contributors

alexcn avatar

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.