GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ainemehdi6/nutriscanpro-api: A comprehensive backend API for a fitness and nutrition tracking application, built with NestJS and TypeScript.

BranchesTags
Open more actions menu

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
postman
postman
 
 
prisma
prisma
 
 
src
src
 
 
.env.dist
.env.dist
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
swagger.json
swagger.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

Fitness Tracker API

A comprehensive backend API for a fitness and nutrition tracking application, built with NestJS and TypeScript.

Features

  • User authentication with JWT
  • Food database with search by name and barcode
  • Meal logging with portion control
  • Exercise tracking with calorie burn calculations
  • Goal setting for calories and macronutrients
  • Weight progress tracking
  • AI-powered food analysis from images and text descriptions

Tech Stack

  • NestJS with TypeScript
  • MySql with Prisma ORM
  • JWT authentication
  • Swagger API documentation

Getting Started

Prerequisites

  • Node.js (v14 or later)
  • Mysql database

Installation

  1. Clone the repository
  2. Install dependencies:
npm install
  1. Set up the environment variables in .env file

  2. Initialize the database:

npx prisma migrate dev
  1. Start the development server:
npm run start:dev

API Documentation

Once the server is running, you can access the Swagger API documentation at:

http://localhost:3000/api/docs

Authentication

The API uses JWT authentication. To access protected endpoints:

  1. Register a new user at /api/auth/register
  2. Login at /api/auth/login to get an access token
  3. Include the token in the Authorization header as:
Authorization: Bearer YOUR_ACCESS_TOKEN

Database Schema

The database schema includes tables for:

  • Users
  • Foods
  • Meals and MealItems
  • Exercises
  • Goals
  • WeightLogs

About

A comprehensive backend API for a fitness and nutrition tracking application, built with NestJS and TypeScript.

nutriscanpro-api.vercel.app

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.