https://github.com/hackyourfuture/hyf-db-pop
HackYourFuture Database Populator
https://github.com/hackyourfuture/hyf-db-pop
Last synced: 4 months ago
JSON representation
HackYourFuture Database Populator
- Host: GitHub
- URL: https://github.com/hackyourfuture/hyf-db-pop
- Owner: HackYourFuture
- Created: 2017-02-18T10:56:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-11T08:45:04.000Z (almost 9 years ago)
- Last Synced: 2025-12-07T08:54:01.792Z (7 months ago)
- Language: PLpgSQL
- Size: 72.3 KB
- Stars: 1
- Watchers: 33
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HackYourFuture Database Populator
### Quickstart
Create the `hyf.cnf` file.
Run `populate.sh config` for instructions.
Run `populate.sh {step1|step2|step3}` according to your data needs.
### NB: This is destructive! It doesn't just truncate the tables, it drops them. ###
## Serverless Slack bot resetter
This repository now contains the [Serverless Framework](https://serverless.com) code that supports the HackYourFuture
Database Resetter bot.
### Using the bot
From within Slack type `/dbreset`.
### Testing the bot locally
`sls invoke local -f reset`
### Deploying a new version of the bot
`sls deploy`
## Todos
* Currently any HackYourFuture Slack user can invoke the bot and create a database for herself/himself. We could implement a check against a DynamoDB table so that only database students can invoke the bot.
* Add teacher functionality that allows teachers to reset students' databases by typing `/dbreset `.