https://github.com/guergeiro/ipv-menu-api
A simple API that wraps around the cafeteria's menu from ESTGV
https://github.com/guergeiro/ipv-menu-api
Last synced: 5 months ago
JSON representation
A simple API that wraps around the cafeteria's menu from ESTGV
- Host: GitHub
- URL: https://github.com/guergeiro/ipv-menu-api
- Owner: Guergeiro
- License: mit
- Created: 2020-02-18T19:03:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-25T10:40:28.000Z (about 3 years ago)
- Last Synced: 2025-01-06T02:42:36.935Z (6 months ago)
- Language: TypeScript
- Size: 220 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ementas-api
A simple API that wraps around the cafeteria's menu from ESTGV
## Table of Contents
- [Documentation](#documentation)
- [Miscellaneous](#miscellaneous)
- [Quick Start](#quick-start)
- [Further Reading](#further-reading)## Miscellaneous
[](https://travis-ci.com/Guergeiro/ementas-api) [](https://www.heroku.com/) [](./LICENSE)
## Documentation
[](https://ementas-api.herokuapp.com/estgv)
```json
// Example response
[
{
"date": "2020-02-03T00:00:00.000Z",
"type": 0,
"sopa": "Alho-Francês",
"carne": "Panadinhos de frango à americana (com bacon) com arroz de",
"peixe": "Solha no forno com batata e alecrim",
"dieta": "Carne de vaca cozida com couve e batata",
"vegetariano": "Fusili gratinado com cogumelos e legumes em juliana"
},
{
"date": "2020-02-03T00:00:00.000Z",
"type": 1,
"sopa": "Macedónia",
"carne": "Chili de carne vaca com arroz",
"peixe": "Carapauzinhos fritos C/ arroz de tomate",
"dieta": "Pescada assada ao natural com brócolos",
"vegetariano": "Legumes salteados à Brás"
}
]
```## Quick Start
### Development
1. Clean project
```bash
$ npm run clean
```
2. Install dependencies
```bash
$ npm install
```
3. Run development app
```bash
$ npm run dev
```### Production
1. Clean project
```bash
$ npm run clean
```
2. Install dependencies
```bash
$ npm install
```
3. Build JavaScript
```bash
$ npm run build
```
4. Run a clean install
```bash
$ npm clean-install --only=production
```As you can see in [config.env](https://github.com/Guergeiro/ementas-api/blob/master/src/config.env), some things are required for this server to work.
1. :globe_with_meridians: **Zamzar API Key** - read more about [Zamzar](https://developers.zamzar.com/)
2. :construction: **API URL** - should be changed according to prod or dev environment:heavy*exclamation_mark: This are all Node.js environment variables. While in \_production* the [config.env](https://github.com/Guergeiro/ementas-api/blob/master/src/config.env) will **NOT** be loaded, therefore this variables should be set at environment.