Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nurriyad/link-monitoring
An API server that stores some URLs of authenticated users. Continuously monitor the URLs. If the URLs state change sends an SMS to the user.
https://github.com/nurriyad/link-monitoring
nodejs-server raw-nodejs twilio
Last synced: about 15 hours ago
JSON representation
An API server that stores some URLs of authenticated users. Continuously monitor the URLs. If the URLs state change sends an SMS to the user.
- Host: GitHub
- URL: https://github.com/nurriyad/link-monitoring
- Owner: nurRiyad
- Created: 2022-07-31T06:24:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-30T09:35:07.000Z (over 2 years ago)
- Last Synced: 2024-11-09T00:57:27.429Z (about 2 months ago)
- Topics: nodejs-server, raw-nodejs, twilio
- Language: JavaScript
- Homepage:
- Size: 94.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# link-monitoring
### Description
An API server that stores some URLs of authenticated users. Continuously monitor the URLs. If the URLs state change sends an SMS to the user.
This project is build with raw nodejs, without using any other packages.My main goal for this project was to learn, how nodejs work with it's built in module like http, os, path, url and others
### API Documentation
- **Auth Related**
- `/signup`
- Req Type: post
- Auth Type: public
- Body
```
{
"firstName": "Md. Al Asad Nur",
"lastName": "Riyad",
"phone": "01712458192",
"address": "rangpur",
"password": "sdfsdfd"
}
```
- `/signin`
- Req Type: post
- Auth Type: Public
- Body
```
{
"phone": "01730232345",
"password": "sdfs"
}
```
- `/signout`
- Req Type: get
- Auth Type: Private/token
- **User Related**
- `/user`
- Req Type: get
- Auth Type: private/token
- Query: ?phone=5464
- Body- `/user`
- Req Type: put
- Auth Type: Private/token
- Body
```
{
"firstName": "Md. Al Asad Nur ",
"lastName": "Riyad",
"phone": "01124538191",
"address": "dhaka",
"password": "sdfsd"
}
```
- `/user`
- Req Type: delete
- Auth Type: Private/token
- Query: ?phone=5464
- **Check Related**
- `/check`
- Req Type: post
- Auth Type: private/token
- Body```
{
"protocol": "http",
"method": "GET",
"url": "www.google.com",
"successcode": ["200","201"],
"timeout":3
}
```- `/check`
- Req Type: get
- Auth Type: Private/token
- Query: ?id=5464
- Body
- `/check`- Req Type: put
- Auth Type: Private/token
- Body```
{
"id": "xj6zefdd0054mpz4rp",
"protocol": "http",
"method": "GET",
"url": "www.reddit.com",
"successcode": ["200","201","400"],
"timeout":3
}
```- `/check`
- Req Type: delete
- Auth Type: Private/token
- Query: ?id=5464## Next thing to do in this project
⬜ Send token in cookie instead of Body
⬜ When a user account deleted all its check should be auto deleted
⬜ When a user is deleted all it's token shuld be auto deleted
⬜ Auto cleanup expire auth token
⬜ Use promice base api and esm