Bangunin
Bangunin is a Go-based web app which functions as a call-based alarm. It basically means that it will wake you up by using phone calls. This project is actually part of me studying Golang.
Here is a list of what I have learnt throughout this project.
- Using
net/http
to build a web app. - Using
net/http
to send an HTTP request (POST, GET). - Using
regexp
to scrape csrf tokens. - Using
time
to schedule the call. - Using goroutines.
Here is my issues while doing this project.
- Error handling (I don't know how to properly handle errors, I wrote the same code all the time).
- Still confused with whether to use exported or unexported identifier.
- Channels?
- Routing: "/" route is accessible from any undefined routes that matches "/.*".
- I don't know how to properly format long lines like Python (is it important in Golang?).
- I don't know how to properly deploy this web app.
How does it work?
It works by scraping CitCall Demo page. It is illegal though to misuse the demo page. This project is for educational purposes only. I don't encourage you to use this project for other purposes.
Building
git clone https://github.com/p4kl0nc4t/bangunin
cd bangunin
go build .
Usage
./bangunin -port=<port>
License
This project is licensed with WTFPL.
Contribution
Feel free to contribute to this project. Any kind of contribution is really appreciated.