https://github.com/iteam1337/izone-slack
Time reporting from Google Calendar
https://github.com/iteam1337/izone-slack
google-calendar izone time-reporting time-tracking
Last synced: 5 months ago
JSON representation
Time reporting from Google Calendar
- Host: GitHub
- URL: https://github.com/iteam1337/izone-slack
- Owner: Iteam1337
- Created: 2017-01-25T20:11:24.000Z (over 9 years ago)
- Default Branch: develop
- Last Pushed: 2017-11-06T09:50:49.000Z (over 8 years ago)
- Last Synced: 2024-12-30T23:44:28.372Z (over 1 year ago)
- Topics: google-calendar, izone, time-reporting, time-tracking
- Language: JavaScript
- Homepage: http://iteam.se
- Size: 205 KB
- Stars: 0
- Watchers: 15
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# izone-slack
REST API for the "Izone" Slack App.
The purpose of this API is to act as a relay between Google Calendar, Slack, 10 000' plans and our internal time tracking and economy system.
## Coding
### Running locally
#### Setup node and install dependencies
Assuming you are already using nvm, install or use the node version specified in .nvmrc
```
nvm install # (or nvm use)
```
Install dependencies and install nodemon globally.
```
npm i
npm i -g nodemon
```
#### Run the REST API and the watch scripts locally.
Run server with nodemon.
```
nodemon
```
Run npm-watch that runs standard linter and test upon each file change.
```
npm start
```
### Contributing
If you are going to contribute, make sure you create a feature branch with your changes. Keep changes clean and focused and make sure all tests are running and your code is Standard compliant before creating a PR.
```
# Create a feature branch.
git checkout -b feature/some_new_feature
# or, using git flow
git flow feature start some_new_feature
```
When creating a PR, make sure to merge from develop so that your branch is ready to be merged. Also, if the code changes are not self-explanatory, add some notes explaining what you have done and how to verify its functionality.
```
git pull origin develop
git push origin feature/some_new_feature
```
#### Database
View relevant fields in people_db
```
use izone;
SELECT p_id
,p_firstname
,p_lastname
,p_izusername
,p_slack_user_id
,p_slack_user_name
,p_google_calendar_address
,p_google_calendar_id
,p_google_token_access_token
,p_google_token_expiry
,p_google_token_refresh_token
FROM people_db
```