A macthmaking slack-bot for g0v projects and g0v attendees. Tell bot the skills you have or issues you like. Bot would match attendees and projects.
- help 使用說明
- in <project name / task> 表示正在某個坑裡,datetime 為預計何時出坑,預設 24 hr 後出坑
- out 表示已經離開某個坑
- all 查詢有哪些 g0ver 正在哪些坑
- add 新增技能
- del 刪除技能
- whoami 查詢自己有哪些技能
- search 搜尋哪些 g0ver 會此技能
- whois 查詢此 g0ver 有哪些技能
- DATABASE_URL (required)
- default value is
postgresql://localhost:54320/g0vhub
- default value is
- SLACK_TOKEN (required)
- SLACK_BOT_ID
- default value is
g0ver
- default value is
- PORT
- default value is
8080
- default value is
- nodemon
- babel-node
- knex
- eslint
- jest
We suggest you to use yarn to manage package.
We recommended you using postgres docker as your database.
docker run -p 54320:5432 --name g0v-postgres -e POSTGRES_PASSWORD='' -e POSTGRES_DB='g0vhub' -d postgres
If you were using docker-machine/virtual machine please edit host
in knexfile.js
.
host: <DOCKER_MACHINE_HOST>,
Please run this command when database started up.
yarn migrate
or
npm run migrate
SLACK_TOKEN='xoxb-123456789012-xxxxxxXXXxxxXXXXXXXXXxxx' yarn start
or
SLACK_TOKEN='xoxb-123456789012-xxxxxxXXXxxxXXXXXXXXXxxx' npm start
Run all unit-tests
yarn test
or
npm test
Run the test related to files
yarn test-watch
or
npm test-watch