Git Product home page Git Product logo

hack-wu / bbs-website Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 14.25 MB

这是一个利用Django搭建的,仿照博客园网站,编写的博客系统。 目前大部分主体功能已经实现,还有少数部分功能没有实现。比如删除,和重新编辑文章的功能还没有编写完成。

Python 6.32% CSS 3.66% ASP.NET 1.45% Classic ASP 4.27% Java 1.46% JavaScript 67.94% PHP 5.91% HTML 8.86% Shell 0.12%
django python3 web

bbs-website's Introduction

BBS-website

这是一个利用Django搭建的,仿照博客园网站,编写的博客系统。 目前大部分主体功能已经实现,还有少数部分功能没有实现。比如删除,和重新编辑文章的功能还没有编写完成。

准备数据库

  • 创建登录用户
mysql > create user bbs@"%" identified by "123456"	#创建登录用户
mysql > grant all on *.* to bbs@"%" 				#授权
  • 导入数据库
mysql > create database bbs;
.......
mysql bbs < bbs.sql -p

docker 部署

  • 上传BBS源码文件
mkdir /data/wwwroot/ -p		
cp BBS /data/wwwroot/			#拷贝BBS源码问价到此目录下
  • 创建镜像并运行
docker build -f dockerfile_bbs -t bbs:v1 .			#创建镜像
docker run --name bbs -p 80:80 -e db_host=192.168.23.12 -v /data/wwwroot/:/data/wwwroot/ -d bbs:v1
	#db_host是数据库的ip地址

bbs-website's People

Contributors

hack-wu avatar

Watchers

 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.