Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davila23/cook-unity
https://github.com/davila23/cook-unity
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/davila23/cook-unity
- Owner: davila23
- Created: 2022-11-15T04:23:05.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-15T11:27:15.000Z (about 2 years ago)
- Last Synced: 2023-03-07T21:57:06.373Z (almost 2 years ago)
- Language: TypeScript
- Size: 106 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Why Next?
The idea was to display a list with the consulted IPs and view the statistics there, unfortunately I didn't have time to complete it.
Next is ideal for this purpose because it allows you to create a rest-api and react client quickly.Here the API => https://github.com/davila23/cook-unity/tree/main/src/pages/api
Stack: Tailwind CSS + TypeScript + Next.js Starter
Things that were missing to implement:
- Some request validator (express-validator / ajv)
- Test for basic scenarios
- Page with list of queries and statistics
- Upload the code to AWS, possibly I would have done it in AWS Amplify## Regarding application's traffic
1- Cloud solution:
Place a queue in front of the api with a load-balancer and grow horizontally when there is more traffic2 - Code solution:
- Enqueue the requests and execute them with a promise.all
- Use multithreading (spawn)## Usage
### 1. Install Dependencies
```bash
yarn install
```### 2. Run Development Environment
```bash
yarn dev
```### Demo
![](https://user-images.githubusercontent.com/50145471/201843274-8c3fde97-1f30-4159-983f-3f2e9b8211fe.gif)