Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maximemoreillon/food_manager
A simple MEVN app to track calories and macronutrients
https://github.com/maximemoreillon/food_manager
express food mongodb mongoose nodejs types typescript
Last synced: about 1 month ago
JSON representation
A simple MEVN app to track calories and macronutrients
- Host: GitHub
- URL: https://github.com/maximemoreillon/food_manager
- Owner: maximemoreillon
- License: mit
- Created: 2021-11-02T13:04:14.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-11-04T10:20:23.000Z (about 2 months ago)
- Last Synced: 2024-11-04T11:24:03.033Z (about 2 months ago)
- Topics: express, food, mongodb, mongoose, nodejs, types, typescript
- Language: TypeScript
- Homepage: https://articles.maximemoreillon.com/articles/573
- Size: 1.04 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Food manager
[](https://hub.docker.com/repository/docker/moreillon/food-manager)
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/moreillon)](https://artifacthub.io/packages/search?repo=moreillon)A calorie and macronutrients tracking web application.
More information about this project [here](https://articles.maximemoreillon.com/articles/573)
The source-code of the GUI for this application is available in [this repository](https://github.com/maximemoreillon/food_manager_front)
## API
| Route | Method | query/body | Description |
| ---------------- | ------ | --------------- | ------------------------------- |
| / | GET | - | Show application configuration |
| /foods | GET | - | Get list of food |
| /foods | POST | food properties | Create food |
| /foods/:food_id | GET | - | Get the food with the given ID. |
| /foods/:food_id | DELETE | - | Delete food with the given ID. |
| /foods/:food_id} | PATCH | new properties | Update food with the given ID. |## Environment variables
| Variable | Description |
| ------------------------- | -------------------------------- |
| MONGODB_CONNECTION_STRING | Connction string for MongoDB |
| APP_PORT | Application port, defaults to 80 |