A Simple REST API to monitor websites, and send notifications to users when website availability changes
Application is dockerized, all you need is to have docker-compose
-
Checkout this repository
git clone https://github.com/3omar-mostafa/url_monitor_api.git
-
Create
.env
file based onexample.env
template -
Run using docker
cd url_monitor_api docker-compose up -d
The above command assumes the environment variables are located in
.env
, to use another file you can useENV_FILE
cd url_monitor_api ENV_FILE=prod.env docker-compose up -d --env-file "${ENV_FILE}"
-
node.js >= 16
-
MongoDB
# Install npm dependencies npm install
-
Checkout this repository
git clone https://github.com/3omar-mostafa/url_monitor_api.git
-
Create
.env
file based onexample.env
template -
Running the app
# development npm run start
# watch mode npm run start:dev
# production mode npm run start:prod
-
Test (Optional)
# unit tests npm run test
# e2e tests npm run test:e2e
# test coverage npm run test:cov