staff-api
Version, currently master branch1 version
- master branchlatestApr 30, 2024
github.com/place-labs/google-staff-api
PlaceOS event management
1 stars
0 dependents
License: NOASSERTION
Installation
# Add this to your shard.yml
dependencies:
staff-api:
github: place-labs/google-staff-api
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
- no constraint declared
- Target
appfrom src/staff-api.cr
Dependencies
Runtime Dependencies
- pg*github: will/crystal-pg
- jwt*github: crystal-community/jwt
- google*github: PlaceOS/google
- granite*github: amberframework/granite
- placeos*github: placeos/crystal-client, branch: master
- promise*github: spider-gazelle/promise
- secrets-env*github: place-labs/secrets-env
- active-model*github: spider-gazelle/active-model
- action-controller*github: spider-gazelle/action-controller
- http-params-serializable*github: place-labs/http-params-serializable, branch: chore/0.36.0
Development Dependencies
README
DEPRECATED PlaceOS Google Staff API
Instead, see https://github.com/place-labs/staff-api/
Env Vars
# Default Timezone
STAFF_TIME_ZONE=Australia/Sydney
# Google calendar credentials
GOOGLE_PRIVATE_KEY=base64
GOOGLE_ISSUER=placeos@organisation.iam.gserviceaccount.com
GOOGLE_ADMIN_ACCOUNT=placeos_service_account@admin.org.com
GOOGLE_DIRECTORY_DOMAIN=example.com
# Public key for decrypting and validating JWT tokens
SECRET_KEY_BASE=base64-public-key
# Location of PlaceOS API
PLACE_URI=https://example.place.technology
# Comma separated list of staff email domains
# for determining who is a potential guest
STAFF_DOMAINS=admin.org.com,org.com
# Database config:
PG_DATABASE_URL=postgresql://localhost/travis_test
Local development
brew install postgres
# Setup the data store
sudo su
mkdir -p /usr/local/pgsql
chown steve /usr/local/pgsql
exit
initdb /usr/local/pgsql/data
# Then can start the service in the background
pg_ctl -D /usr/local/pgsql/data start
# Or start it in the foreground
postgres -D /usr/local/pgsql/data
# This seems to be required
createdb
# Now the server is running with default user the same as your Mac login
psql -c 'create database travis_test;'
export PG_DATABASE_URL=postgresql://localhost/travis_test
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Apr 30, 2024
- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/place-labs/google-staff-api
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 15, 2026
- Versions
- 1