# food-server

> server with some options

Latest version **1.2.3** (published 2019-09-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install food-server
pnpm add food-server
yarn add food-server
bun add food-server
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.3 |
| Published | 2019-09-04 |
| First published | 2019-09-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 28.7 KB |
| Known vulnerabilities | 0 (+13 in 3 direct dependencies) |
| Install scripts | no |
| Author | Nykolyn Andrii |
| Maintainers | andrein |
| Keywords | server |

## Links

- npm: https://www.npmjs.com/package/food-server
- Repository: https://github.com/Nykolyn/food-server
- Homepage: https://github.com/Nykolyn/food-server#readme
- Issues: https://github.com/Nykolyn/food-server/issues
- npm.io page: https://npm.io/package/food-server

## Dependencies (10)

- [uuid](https://npm.io/package/uuid.md) ^3.3.3
- [debug](https://npm.io/package/debug.md) ^4.1.1
- [morgan](https://npm.io/package/morgan.md) ^1.9.1
- [multer](https://npm.io/package/multer.md) ^1.4.2
- [express](https://npm.io/package/express.md) ^4.17.1
- [nodemon](https://npm.io/package/nodemon.md) ^1.18.4
- [form-data](https://npm.io/package/form-data.md) ^2.3.2
- [body-parser](https://npm.io/package/body-parser.md) ^1.19.0
- [querystring](https://npm.io/package/querystring.md) ^0.2.0
- [connect-multiparty](https://npm.io/package/connect-multiparty.md) ^2.2.0

## Recent versions

- 1.2.3 (latest) — 2019-09-04
- 1.2.2 — 2019-09-04
- 1.2.1 — 2019-09-04
- 1.2.0 — 2019-09-04
- 1.1.0 — 2019-09-04
- 1.0.0 — 2019-09-04

## README

# What is this?

Runs simple server

# Installation

`npm i food-server`

Then...

```
package.json
"scripts": {
"server": "nodemon <path to file>"
}
```

```
const server = require('food-server')
const port = 8080;
server(port);
```

## options

Server support following options(functionaly will be growing with time):

- _// Products //_
- _GET /products_ - _shows an array of all avaiable products_
- _GET /produuts/id_ - _shows product(obj) with unique id_
- _GET /products?ids=id,id,id_ - _shows an array of products with id's_
- _GET /products?cat=category,category_ - _shows and array of products with matched categories_
- _// Users //_
- _GET /user/id_ - _shows the user with unique id_
- _POST /user_ - _creates new user_
- _POST /user_ - _(form-data) possibility to appload an image to user_
- _// Orders //_
- _POST /orders_ - _creates an order, requires user's and products id's_

---
_Source: https://npm.io/package/food-server · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
