Giter Club home page Giter Club logo

db-project's Introduction

数据库大作业

因为 Oracle 安装太麻烦了,于是用了 MySQL

install

安装 Docker

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo service docker start

启动数据库

sudo docker compose up -d

初始化数据库

sudo docker exec flask-mysql /bin/sh -c "mysql -uroot -pexample < /db/setup.sql"

配置 python 虚拟环境

如果已经安装了 conda ,可以用 conda 配置虚拟环境:

conda create -y -n db_project python=3.9
conda activate db_project
pip install -r requirements.txt

如果没有安装 conda ,也可以通过如下方法配置虚拟环境:

python -m venv env
source ./env/bin/activate
pip install -r requirements.txt

start

python -m flask run

如果刚安装完能成功运行,一段时间后运行不了,请检查一下 docker 和 python venv:

sudo docker ps -a
which python

sudo service docker restart 可以重启 docker。

use

功能

1.明暗模式 2.todolist 3.table look 4.code input 5.user information 待加 6.rank 待家

code

代码框功能:

代码高亮,代码补全,代码行号,括号匹配,代码折叠(sql代码暂时不能折叠)

db-project's People

Contributors

yyc001 avatar gjc2 avatar lilopal 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.