2023-04-02 19:24:07 +00:00
|
|
|
H0wdy!!!
|
2023-04-02 18:39:31 +00:00
|
|
|
|
2023-04-12 22:22:36 +00:00
|
|
|
feel free to commit, leave suggestions/ideas, issues, or really anything <3
|
2023-04-02 19:24:07 +00:00
|
|
|
|
2023-04-12 22:22:36 +00:00
|
|
|
# What is TCP.WIKI ?
|
|
|
|
|
2023-04-15 23:16:27 +00:00
|
|
|
https://tcp.ac/i/IFAZE
|
|
|
|
|
|
|
|
|
2023-04-12 22:22:36 +00:00
|
|
|
## Project Goals
|
|
|
|
secure and verifiable wiki for projects, code, courses, documents, articles, tutorials, and more
|
|
|
|
|
|
|
|
## Setup
|
2023-04-12 12:29:36 +00:00
|
|
|
**For a normal user you can follow this process:**
|
|
|
|
|
|
|
|
First clone the repo:
|
|
|
|
```bash
|
|
|
|
git clone https://git.tcp.direct/S4D/tcp-wiki.git
|
|
|
|
```
|
|
|
|
Then you have to cd into the repo's folder and run/compile:
|
|
|
|
```bash
|
|
|
|
cd tcp-wiki/src
|
|
|
|
go run .
|
|
|
|
```
|
|
|
|
Then you goto your browser and visit: http://127.0.0.1:8080/
|
|
|
|
|
|
|
|
**For a develeper setup you can follow this process:**
|
|
|
|
|
|
|
|
First clone the repo:
|
|
|
|
```bash
|
|
|
|
git clone ssh://git@git.tcp.direct:2222/S4D/tcp-wiki.git
|
|
|
|
```
|
|
|
|
Then cd and run dev.sh
|
|
|
|
```bash
|
|
|
|
cd tcp-wiki
|
|
|
|
bash dev.sh
|
|
|
|
```
|
2023-04-12 22:22:36 +00:00
|
|
|
Then you just have to execute this to run the server:
|
|
|
|
```go
|
|
|
|
cd src && go run .
|
|
|
|
```
|
2023-04-12 12:29:36 +00:00
|
|
|
Then you goto your browser and visit: http://127.0.0.1:8080/
|
|
|
|
|
|
|
|
This method just adds in some handy symlinks for development purposes
|
|
|
|
|
2023-04-12 22:22:36 +00:00
|
|
|
## Want to use with your own repo?
|
2023-04-12 12:29:36 +00:00
|
|
|
|
2023-04-12 22:22:36 +00:00
|
|
|
All you have to do is modify the following lines in the src/main.go file:
|
2023-04-12 12:29:36 +00:00
|
|
|
```go
|
|
|
|
const repoURL = "https://git.tcp.direct/S4D/tcp-wiki.git"
|
|
|
|
```
|
2023-04-12 22:22:36 +00:00
|
|
|
Change `https://git.tcp.direct/S4D/tcp-wiki.git` to your repo link, and:
|
|
|
|
```go
|
|
|
|
const repoBRANCH = "main"
|
|
|
|
```
|
|
|
|
change `main` to your specific repo's branch and you should be good to go!
|
2023-04-12 12:29:36 +00:00
|
|
|
|
2023-04-02 19:24:07 +00:00
|
|
|
## TODO
|
|
|
|
|
|
|
|
- [ ] MANY FUCKING THINGS
|
|
|
|
- [ ] Webhook support for auto pull on push/update of the git repo
|
2023-04-12 22:22:36 +00:00
|
|
|
- [x] Git Branch support
|
2023-04-02 20:02:07 +00:00
|
|
|
- [ ] add a star/upvote/like feature for pages
|
2023-04-13 01:35:10 +00:00
|
|
|
- [x] edit/version tracker
|
|
|
|
- [x] Author
|
|
|
|
- [x] last edited
|
|
|
|
- [ ] last editor/commit [?] maybe working
|
2023-04-12 22:22:36 +00:00
|
|
|
- [ ] PGP Signed & Verification
|
2023-04-12 09:48:12 +00:00
|
|
|
- [ ] pgp signed intergration
|
2023-04-12 12:29:36 +00:00
|
|
|
- [x] comments using bitcask - generated in comments.db/
|
2023-04-12 09:48:12 +00:00
|
|
|
- [ ] verification - no login pgp
|
|
|
|
- [ ] captcha
|
|
|
|
- [ ] sub rating system
|
|
|
|
- [ ] sort by date etc
|
2023-04-12 12:29:36 +00:00
|
|
|
- [ ] reply to replies
|
|
|
|
- [ ] set security controls per page
|
2023-04-12 22:45:55 +00:00
|
|
|
- [ ] auto refresh on post
|
2023-04-12 09:48:12 +00:00
|
|
|
- [ ] dynamically generated links for all avaiable pages
|
|
|
|
- [ ] sitemap
|
|
|
|
- [ ] anti robot shit here
|
2023-04-12 12:29:36 +00:00
|
|
|
- [ ] acual working pages!?
|
2023-04-12 09:48:12 +00:00
|
|
|
- [ ] post quantum intergration and verification
|
|
|
|
- [ ] BUILD UP THAT MARKDOWN SUPPORT
|
|
|
|
- [ ] fix whatever i did to fuck up design/layout/css???
|