Skip to content

Slimmom Backend API is a secure and scalable RESTful service for nutrition and wellness apps. It provides user authentication, personalized calorie calculations, daily food diaries, and product management. Built with Node.js, Express, and MongoDB, it features JWT authentication and detailed API docs with Swagger and Redoc.

Notifications You must be signed in to change notification settings

HealthStackTeam/slimmom-backend

Repository files navigation

🥗 Slimmom Backend API

Welcome to the Slimmom Backend API! This project powers the backend of the Slimmom application, providing robust endpoints for user authentication, calorie tracking, product management, and daily diary features.


🚀 Features

  • 🔐 User Authentication & Authorization
  • 🥑 Product & Calorie Database
  • 📅 Daily Food Diary
  • 📊 Personalized Calorie Calculator
  • 🩸 Blood Type-based Recommendations
  • 📝 Comprehensive API Documentation (Swagger & Redoc)

📚 Technologies Used

  • Node.js Node.js
  • Express Express.js
  • MongoDB MongoDB & Mongoose
  • JWT JWT Authentication
  • Swagger Swagger & Redoc for API Docs
  • ESLint ESLint

📦 Main Libraries

  • express
  • mongoose
  • jsonwebtoken
  • bcryptjs
  • joi
  • dotenv
  • cors
  • morgan

📑 API Endpoints

🧑‍💻 Auth

  • POST /api/auth/register — Register a new user
  • POST /api/auth/login — User login
  • POST /api/auth/logout — User logout
  • POST /api/auth/refresh — Refresh session token

🥗 Calorie

  • POST /api/calorie/public — Calculate calories (public)
  • POST /api/calorie/private — Calculate calories (private, for logged-in users)

📅 Diary

  • GET /api/diary — Get diary entries
  • POST /api/diary — Add diary entry
  • DELETE /api/diary — Delete diary entry

🥑 Products

  • GET /api/products — List all products

📖 API Documentation


🛠️ Getting Started

  1. Clone the repository:
    git clone https://github.com/HealthStackTeam/slimmom-backend.git
  2. Install dependencies:
    npm install
  3. Configure environment variables:
    • Copy .env.example to .env and fill in your values.
  4. Run the server:
    npm start

👨‍💻 Developers

Name GitHub Profile
Burak Ezer burakezer92
Ozan Can Cuyar ozncncyr
İlker Şelimen ilkerthedev
Miraç Şengül miracsengul
Çağla Karabudak Akın caglaakin
Lütfi Çağlayan Usta lutficaglayanusta
Abdullah Furkan Toy okazaki55
Fatih Genç gencoflu61
Yeşim Bozkurt yesimbozkurt

🌟 Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.


📄 License

This project is licensed under the MIT License.


Made with ❤️ by the HealthStack Team

About

Slimmom Backend API is a secure and scalable RESTful service for nutrition and wellness apps. It provides user authentication, personalized calorie calculations, daily food diaries, and product management. Built with Node.js, Express, and MongoDB, it features JWT authentication and detailed API docs with Swagger and Redoc.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5