akf-forum/README.md

105 lines
3.4 KiB
Markdown
Raw Permalink Normal View History

2022-03-13 16:16:46 +03:00
# akf-forum
A Node.js based forum software.
2022-03-13 16:16:46 +03:00
## Installation
2022-05-01 17:10:44 +03:00
- Clone or download this repo.
- Run `npm i` to install **dependencies**.
2022-09-17 19:33:51 +03:00
- Enter your database credentials in `.env`.
- Run `npm start` for run it.
2023-05-25 17:47:54 +03:00
- Go `/setup` page for setup your forum.
2022-05-01 17:10:44 +03:00
### Extra (If you are not use `setup` page)
2022-09-17 15:19:41 +03:00
Run `node util/reset` to **reset the database** for duplicate key errors, and run `node util/admin` for give admin perms to first member.
2023-05-25 17:47:54 +03:00
Edit `config.json` for default theme for users, forum name, meta description, character limits, discord auth enabler, global ratelimit etc.
2022-09-17 19:33:51 +03:00
### How to install theme:
2023-05-25 17:47:54 +03:00
- Copy your theme to `src/themes` folder.
Additional note for themes: If a theme has not got any .ejs file, it will use default theme's .ejs files. default theme is in themes folder, named as `common`.
2022-09-17 19:33:51 +03:00
### DISCORD AUTH:
2023-05-25 17:58:47 +03:00
`"discord_auth": true` in config.json.
Add your app secret and app id to `.env` as `DISCORD_SECRET` and `DISCORD_ID`.
2022-09-17 19:33:51 +03:00
Create a redirect url in discord developer portal:
`https://forum_url.com/auth/discord`
### EMAIL AUTH:
You can configure it. Just edit `config.json` and `.env` files.
2022-10-09 21:23:31 +03:00
`"email_auth": true, "default_user_state": "APPROVAL"` in config.json.
Add your email credentials to `.env` as `EMAIL_USER` and `EMAIL_PASS`.
Add your email domain to `.env` as `EMAIL_SERVICE`.
2022-03-13 16:16:46 +03:00
## API
Akf-forum has got an API for AJAX (fetch), other clients etc. And, you can learn about API in `APIDOCS.md`.
2022-09-09 21:40:02 +03:00
**And you can use [offical API wrapper](https://github.com/Akif9748/akf-forum-api).**
2022-03-13 16:16:46 +03:00
## Credits
2022-08-26 16:27:29 +03:00
* [Akif9748](https://github.com/Akif9748) - Project mainteiner, main developer, made **old** frontend
2022-08-26 16:37:26 +03:00
* [Tokmak](https://github.com/tokmak0) - Made **new** frontend
2022-08-26 16:27:29 +03:00
* [Camroku](https://github.com/Camroku) - Made **old** stylesheets
## Screenshot
2023-05-25 18:07:18 +03:00
### Thread Page w/Bootstrap theme
![image](https://github.com/Akif9748/akf-forum/assets/70021050/1ad4ad8e-d000-46a6-834e-7d76cdddda60)
2022-03-13 16:16:46 +03:00
2022-09-01 16:23:46 +03:00
## TO-DO list
2023-05-26 19:47:31 +03:00
### Backend:
#### Feature:
- Profile Message or DM
2023-05-26 19:47:31 +03:00
- Upload other photos, model for it
- Edit & download template
2023-05-26 21:08:14 +03:00
- Banner
2023-08-10 15:23:11 +03:00
- Add @me support for ids, <%= member.id %>
2023-05-26 19:47:31 +03:00
- Roles & Permissions
2023-05-26 19:20:51 +03:00
```
role: "moderator",
permissions: ["see_deleted_message"]
```
2023-05-26 19:47:31 +03:00
#### Fixes:
- Admin deleting other admins.
- theme.js, change theme js code to a file.
- same email discord???? direct err
- IMPORTANT: add user/member id to file so scripts can access
2023-05-26 19:47:31 +03:00
#### ETC:
- Rewrite apidocs
- Add a feature list to README.md
2023-05-26 19:20:51 +03:00
2023-05-26 19:47:31 +03:00
### Frontend
#### Features:
- change category name
- Add approval threads page.
2023-08-27 20:22:28 +03:00
- add support for switch around gravatar and upload photo
2023-05-26 19:47:31 +03:00
- old contents / titles add to forum interface
- who liked a message
2023-05-26 19:20:51 +03:00
2023-05-26 19:47:31 +03:00
#### Fixes:
2023-05-26 19:55:45 +03:00
- BETTER SETUP PAGE: use setup everytime
- add threads, messages etc. to "extra" folder
2023-05-26 21:08:14 +03:00
- add category to thread list page
- working reset button
- text alling center body
- thread.js unfuction only listener
- show error on modal
- send delete, ban to user settings (edit user) menu and fix edit user menu
2023-08-27 20:22:28 +03:00
## Special Thanks:
2023-08-22 22:42:45 +03:00
https://github.com/akashgiricse/Online-Forum for bootstrap theme.
2023-08-27 20:22:28 +03:00
@Tokmak for old frontend.
2023-08-27 20:22:28 +03:00
https://fengyuanchen.github.io/cropperjs/examples/crop-a-round-image.html for avatar upload panel.
https://github.com/mdbootstrap/bootstrap-profiles for profile page of bootstrap theme.
## Major Version History
2023-08-10 15:33:40 +03:00
- V5: Enchanted Themes
2022-08-31 14:44:28 +03:00
- V4: Caching
- V3: New Theme
- V2: Backend fix, mongoose is fixed. Really big fix.
- V1: Mongoose added.
2023-05-25 18:07:18 +03:00
- V0: Birth with quick.db