Skip to content

myFOODIE – Web Application This project covers frontend development (React/Next.js), backend services (Node.js/Express), and database integration (PostgreSQL/MySQL), focusing on improving efficiency, reducing food waste, and enhancing user satisfaction.

Notifications You must be signed in to change notification settings

priyashankapgui/myFOODIE-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myFOODIE Server 🍽️

Node.js Express Sequelize PostgreSQL


Table of Contents


About 👨🏼‍🏫

myFOODIE-server is the backend API for the myFOODIE web application, which helps Hemas Hospital staff manage meal orders efficiently. This server handles:

  • Order creation and management
  • Food items management
  • Department & employee integration
  • Role-based access and authentication

Features 👨🏽‍💻

  • User Authentication with JWT
  • CRUD operations for orders, food items, and departments
  • Role-based access control for staff and management
  • Transactional order creation ensuring database consistency
  • Seamless integration with PostgreSQL database

Tech Stack 🛠️

  • Backend: Node.js, Express.js
  • Database: PostgreSQL
  • ORM: Sequelize
  • Authentication: JWT
  • Validation: Zod / custom middleware
  • Environment Management: dotenv
  • Frontend: Next.js

Getting Started 🚀

Prerequisites

  • Node.js v20+
  • PostgreSQL v15+
  • npm

Setup .env

  • create the .env file and add your
    • PG_PASSWORD
    • JWT_SECRET
    • EMAIL_USER
    • EMAIL_PASS

Installation

# Clone repository
git clone https://github.com/yourusername/myFOODIE-server.git
cd myFOODIE-server

# Install dependencies
npm install

# Setup environment variables
cp .env.example .env
# Update database credentials, JWT secret, etc.

# Run migrations (if using Sequelize CLI)
npx sequelize db:migrate

# Start the server
npm run dev

About

myFOODIE – Web Application This project covers frontend development (React/Next.js), backend services (Node.js/Express), and database integration (PostgreSQL/MySQL), focusing on improving efficiency, reducing food waste, and enhancing user satisfaction.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published