https://github.com/arvind-4/task
A simple task
https://github.com/arvind-4/task
expressjs typescript
Last synced: 8 months ago
JSON representation
A simple task
- Host: GitHub
- URL: https://github.com/arvind-4/task
- Owner: arvind-4
- License: mit
- Created: 2023-09-08T10:00:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-08T11:00:01.000Z (over 2 years ago)
- Last Synced: 2025-02-17T13:17:54.110Z (11 months ago)
- Topics: expressjs, typescript
- Language: TypeScript
- Homepage: https://tense-waistcoat-calf.cyclic.app
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 📦 Tech Stack:
- [Express Js](https://expressjs.com/) - Fast, unopinionated, minimalist web framework for Node.js.
- [Node.js](https://nodejs.org/en/) - Node.js is an open-source, cross-platform JavaScript runtime environment.
- [Typescript](https://www.typescriptlang.org/) - JavaScript with syntax for types.
- [Yup](https://github.com/jquense/yup) - Dead simple Object schema validation.
- [Cyclic sh](https://www.cyclic.sh) - Deploy Fullstack Javascript Apps: Front-end, Backend, Database, Scheduled tasks. All running with zero-config.
## Test Endpoint:
- **POST to /bfhl**
```shell
curl -H 'Content-Type: application/json' \
-d '{ "name": "Don", "dob": "12/08/2002", "email": "aa2@h.com", "roll_number": "89898229", "data": ["M","1","334","4","B", 2, 90, "89", "K"]}' \
-X POST \
https://tense-waistcoat-calf.cyclic.app/bfhl
```
Response:
```
{
"is_status": true,
"user_id": "don_12082002",
"email": "aa2@h.com",
"roll_number": "89898229",
"numbers": [
1,
334,
4,
2,
90,
89
],
"alphabets": [
"M",
"K",
"B"
],
"highest_alphabet": [
"M"
]
}
```
- **GET /bfhl**
```
curl https://tense-waistcoat-calf.cyclic.app/bfhl
```
Response :
```
{
"is_status": true,
"operation_code": 1
}
```
## Getting Started:
- Clone Repo
```bash
mkdir tasks
cd tasks
git clone https://github.com/Arvind-4/task .
```
- Install Dependencies
```bash
npm install
```
- Run Dev Server
```bash
npm run dev
```