https://github.com/probablyarth/query-server
rocketium assignment
https://github.com/probablyarth/query-server
Last synced: 26 days ago
JSON representation
rocketium assignment
- Host: GitHub
- URL: https://github.com/probablyarth/query-server
- Owner: probablyArth
- Created: 2024-07-29T20:13:01.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-30T18:20:05.000Z (almost 2 years ago)
- Last Synced: 2025-02-25T03:23:57.611Z (over 1 year ago)
- Language: TypeScript
- Size: 64.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Query Server
# Environment Variables
```python
PORT = (default: "8000")
DATA_URL = (default: "https://microsoftedge.github.io/Demos/json-dummy-data/256KB.json")
```
# Running locally
```sh
# make .env file
cp .env.example .env
# install the dependencies
yarn
# run dev server with ts-node
yarn dev
```
# Building for production
```sh
# make a build output to ./dist
yarn build
# start the production build server
yarn start
```
# Endpoints
`GET /data`
```ts
# Query Parameters
sortBy - string
order - "asc" | "desc"
limit - integer
offset - integer
case_insensitive - boolean
- string // match any field with a value
```