Skip to content

ksw2000/twisc.nchu.edu.tw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twisc.nchu.edu.tw

國立中興大學資通安全研究與教學中心網站 www.twisc.nchu.edu.tw

Dependencies

  • Go 1.16

  • SQLite3

  • Front-end javascript

Files

  • twisc.nchu.edu.tw/
    • .git/
    • assets/ (static files)
      • img/
      • js/
      • style/
      • upload/ (client's uploaded files)
    • config/
    • db/ (sqlite database)
      • calendar.db
      • calendar.db.sql (only schema)
      • main.db
      • main.db.sql (only schema)
    • handler/
      • basic.go (/*)
      • error.go (/error/* HTTP403 & 404)
      • api.go (/api/* for Ajax)
      • manage.go (/manage/*)
      • article.go
      • calendar.go
      • files.go (manage the uploaded files)
      • login.go
      • renderer.go
      • util.go
    • html/
    • go.mod
    • go.sum
    • main.go (main program)

Quick start

  1. Create database from /db/*.sql
    • /db/calendar.db.sql
    • /db/main.db.sql
    cat calendar.db.sql | sqlite3 calendar.db
    cat main.db.sql | sqlite3 main.db
  2. run
    # build
    $ go build main.go
    
    # run at port 8086
    $ ./main
    
    # run at port 443
    $ ./main -p 443
    
    # disable minify static files
    $ ./main --debug
  3. default user
    • id: root
    • password: 00000000

About

國立中興大學資通安全研究與教學中心網站

Resources

Stars

Watchers

Forks