Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sainak/status-checker
Golang http server to check active status of websites
https://github.com/sainak/status-checker
Last synced: about 2 months ago
JSON representation
Golang http server to check active status of websites
- Host: GitHub
- URL: https://github.com/sainak/status-checker
- Owner: sainak
- License: mit
- Created: 2023-01-27T08:09:34.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-22T10:53:37.000Z (over 1 year ago)
- Last Synced: 2024-06-21T17:05:47.120Z (7 months ago)
- Language: Go
- Size: 130 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Status Checker
Golang http server to check active status of websites
## Run Locally
Clone the project
```shell
git clone https://github.com/sainak/status-checker && cd status-checker
```Configure environment variables
```shell
cp example.env .env
```Build the app
```shell
go build
```Start postgres
```shell
docker run -d --name postgres1 \
-v postgres_data:/var/lib/postgresql/data \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=postgres \
-e POSTGRES_DB=website-status \
-p 5432:5432 \
postgres:latest
```Migrate db
```shell
./status-checker migrate up
```Start the server
```shell
./status-checker serve
```