Nutrition based on Food and Exercises Calories Burn Estimation API. Build using NodeJS. API Source from : Nutritionix API V2 https://developer.nutritionix.com/docs/v2
- Get nutrition data based on what you eat
- Search food nutrition data
- Search food nutrition data based on branded item
- Calculate calories burned when doing exercises
- Get nearby restaurant based on latitude and longitude
- API Documentation (Apiary) : https://stevenputratanoto.docs.apiary.io/#
- API Documentation (Github) : https://github.com/StevenTannn/NutritionixRESTAPI/blob/master/documentation/API%20Documentation.apib
- Architeture Documentation : https://github.com/StevenTannn/NutritionixRESTAPI/blob/master/documentation/Nutritionix%20REST%20API%20Architeture%20Documentation.pdf
The system requirement for running this project:
- Nodejs
- yarn
-
- Create .env file using .env.example as a template
- API_URL : API URL (https://trackapi.nutritionix.com/v2)
- PORT : Server running port
- JWT_KEY : JWT secret key
- API_KEY : Nutritionix API key
- API_APP_ID : Nutritionix API APP ID
- Create .env file using .env.example as a template
-
- Clone this repo
- Install dependencies with console
yarn install
- Using console start the server
yarn start
- To get API_KEY and API_APP_ID from Nutritionix API you must register first at (https://developer.nutritionix.com/signup)
- To get AccessKey you must first call /login endpoint with request body {"user":"anythingyouwant"}
- Axios
- CORS
- dotenv
- Express
- Faker
- JSONWebToken
- Morgan
- Nodemon