Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dmarzzucco/death-time
This project implements a technique inspired by the idea of pressuring customers to make outstanding payments by progressively rendering the application unusable after a specific deadline.
https://github.com/dmarzzucco/death-time
asp-net-core backend-api csharp flask-api middleware node-js python typescipt
Last synced: about 1 month ago
JSON representation
This project implements a technique inspired by the idea of pressuring customers to make outstanding payments by progressively rendering the application unusable after a specific deadline.
- Host: GitHub
- URL: https://github.com/dmarzzucco/death-time
- Owner: DMarzzucco
- Created: 2024-07-17T12:14:47.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-11-06T20:23:32.000Z (about 2 months ago)
- Last Synced: 2024-11-06T21:28:26.620Z (about 2 months ago)
- Topics: asp-net-core, backend-api, csharp, flask-api, middleware, node-js, python, typescipt
- Language: C#
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Death Time
This project implements a technique inspired by the idea of pressuring customers to make outstanding payments by progressively rendering the application unusable after a specific deadline.
## Functionality
The core logic of the technique is based on server-side middleware that checks the current date against a predefined deadline. Once this deadline has passed, the application blocks all critical operations and deletes records from the database, ensuring that the application can no longer be used.
## Implementation
```
Death Time = ('YEAR-MONTH-DAY HOURS:MINUTE:SECOND')
```
## Exapmples
```TS
const currenTime = new Date();
const deathTime = new Date('YYYY-MM-DDTHH:mm:ssZ')
```
```PY
current_time = datetime.utcnow()
death_time = datetime.strptime('YYYY-MM-DDTHH:mm:ssZ', '%Y-%m-%dT%H:%M:%SZ')
```
```CS
var currentTime = DateTime.UtcNow;
var deathTime = DateTime.Parse("YYYY-MM-DDTHH:mm:ssZ");
```
## Examples in ProjectIf you wanna see how work this middleware. You can test [here](https://github.com/DMarzzucco/register_Date_with_No_Paid_incluid.git)
## APIs
[ASP.NET](https://github.com/DMarzzucco/DeathTime.ASP.NET.git)
[ExpressJs](https://github.com/DMarzzucco/DeathTime.Express-API.git)
## Author
Inspired from (@kleampa)
Made by Dario Marzzucco (@darmarzz)## Advertising
This repository is designed for educational and demonstration purposes. The legality of its use in real applications is not guaranteed. The author is not responsible for improper use of this technique.