https://github.com/bem/bem-forum
BEM forum on top of github issues
https://github.com/bem/bem-forum
bem
Last synced: 8 months ago
JSON representation
BEM forum on top of github issues
- Host: GitHub
- URL: https://github.com/bem/bem-forum
- Owner: bem
- Created: 2016-07-06T09:35:45.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-04-15T22:23:24.000Z (about 4 years ago)
- Last Synced: 2024-04-14T12:10:38.812Z (about 2 years ago)
- Topics: bem
- Language: JavaScript
- Homepage: https://bem.info/forum
- Size: 318 KB
- Stars: 5
- Watchers: 10
- Forks: 5
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bem-forum
Source code of https://bem.info/forum.
Uses github.com issues API as backend.
## Installation
```
git clone https://github.com/tadatuta/bem-forum.git
cd bem-forum
npm i
YENV=production npm run make
echo "module.exports = {};" > server/secret-config.js
```
Please provide your github OAuth credentials in `server/secret-config.js` like this:
```js
module.exports = {
github: {
tokens: [
'GENERATED_TOKEN_1',
'GENERATED_TOKEN_2',
'GENERATED_TOKEN_3'
],
clientID: 'YOUR_CLIENT_ID',
clientSecret: 'YOUR_CLIENT_SECRET'
}
};
```
You may get them on https://github.com/settings/applications/new
For development use `http://localhost:3000/auth/github/callback` as callback URL.
**Note**: `server/secret-config.js` is not under version control.
You may prefer ENV variables `BEM_FORUM_TOKENS` (comma delimited), `BEM_FORUM_CLIENT_ID` and `BEM_FORUM_CLIENT_SECRET` instead.
Also languages may be set by ENV variables `BEM_FORUM_DEFAULT_LANG` and `BEM_FORUM_LANGS` (comma delimited).
Then just run `npm start` for production mode.
## Configuration
Edit `server/config.js` to provide your github repo info.
## Development
```
npm run watch
nodemon
```