Table of Contents
Use Meetup Pro API to send Slack messages before events occur.
- Clone repo
- Copy
.env.exampleto.envand fill out environment variables
python -m venv .venv source .venv/bin/activate cd ./app # run individual app python <sign_jwt|meetup_query|slackbot|main>.py # run only main app python main.py
cd ./app # standalone server w/hard-coded port (default: 3000) ./startup.sh # standalone server w/port argument ./startup.sh 3000 # server used with scheduled job (e.g., cron job) ./scheduler.sh
I.e., Nix Package Manager
# enter dev environment devbox shell # run individual app python <sign_jwt|meetup_query|slackbot|main>.py # exit dev environment exit # run standalone server devbox run start # run tests devbox run test
cd ./app # build image docker build -f Dockerfile --progress=plain -t meetup_bot:latest . # run image docker run --name meetup_bot -it --rm --env-file .env -p 3000:3000 meetup_bot bash
cd ./app # build image docker-compose build --remove-orphans # run image docker-compose up -d # enter server container docker exec -it meetup_bot-cont bash # exit server container exit # stop image docker-compose stop # remove image docker-compose down --volumes
Alex Ayon 💻 |
||||||
|
|
||||||
API Doc Authentication | Meetup
Building a Basic Authorization Server using Authorization Code Flow (PKCE) | by Ratros Y. | Medium
OAuth2 with Password (and hashing), Bearer with JWT tokens - FastAPI
Python bcrypt - hashing passwords in Python with bcrypt
Building Docker images in Kubernetes | Snyk
Kaniko, How to Build Container Image with SSH | by Yossi Cohn | HiredScore Engineering | Medium