Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 |