Giter VIP home page Giter VIP logo

nbuctf_go's Introduction

1. 基本介绍

NBUCTF_go 是一个基于 go 的开源 CTF 平台。 前端使用VUE3+element-Plus+Datav+tailwindcss等 后端使用golang+gin+gorm+casbin等 靶机使用docker,通过k3s实现管理。

部署采用docker-compse。

2. 使用说明

2.1 快速部署

[!建议]使用docker-compose镜像快速部署

前提搭建靶机需要的k3s环境,在server目录下放入k3s配置文件并重命名为k8sconfig.yaml

# 克隆项目
git clone https://github.com/lindocedskes/nbuctf_go.git
# 进入deploy文件夹
cd deploy
# 启动你的应用和它的依赖
docker-compose up

说明: docker-compose.yaml 中拉取的镜像版本 image: lin088/nbuctf:v1.2-local (为本地运行测试版,线上部署需要修改配置,重新build) settings.yaml 为系统的各种配置,包含了数据库的默认密码,管理员默认登录账号密码为admin 123456

2.2 server项目启动:

后端启动前提:

server/settings.yaml 中配置mysql和redis 搭建靶机需要的k3s环境,在server目录下放入k3s配置文件并重命名为k8sconfig.yaml

# 克隆项目
git clone https://github.com/lindocedskes/nbuctf_go.git
# 进入server文件夹
cd server

# 使用 go mod 并安装go依赖包
go generate

# 编译 
go build -o server main.go 

# 运行二进制
./server

2.3 前端项目nbuctfVue3启动

# 进入nbuctfVue3文件夹
cd nbuctfVue3
# Project Setup
pnpm install
# Compile and Hot-Reload for Development
pnpm dev
# 打包
pnpm build

Lint with ESLint 规范纠错

pnpm lint

Format use Prettier 代码格式化

pnpm format

3.平台系统总体架构设计

image-20240605164926158

4.Demo 🗿

image-20240605165255323

赛题页面:image-20240605165335236

答题卡片:下载附件,靶机开启...image-20240605165345558

排行榜:image-20240605165352806

赛题管理:image-20240605165431072

联系方式 :

gmail:[email protected]

说明:

此项目开源,功能较为完善,且不用于商业用途,纯个人学习练手项目 后端框架学习了 gin-vue-admin 开源项目

nbuctf_go's People

Contributors

lindocedskes avatar

Stargazers

kwhao avatar  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.