This repository contains the MERN stack prototype for the Kobra Kai charity project, developed as part of WEB701 – Web Technologies at NMIT.
The prototype demonstrates the required website functionality for Assignment 1:
- Authentication: Beneficiaries and Members can register, log in, and manage their accounts (via JWT).
- Meals & Token Transactions: Members list meals; beneficiaries browse meals and order them using tokens; members accept/reject orders.
- Interactive Features: Dashboards for both user types, token balances, order history, and real-time updates.
- Node.js v18+
- npm (comes with Node)
- MongoDB Community Server (local or Atlas cloud)
- Postman (optional, for API testing)
Clone the repository:
git clone https://github.com/yourusername/MERN-Stack.git
cd MERN-Stack
## Install API npm packages
cd api
npm install
npm run dev
## Create .env file
create the .env file in API root directory and add the following with a JWT_SECRET string
PORT=5000
MONGO_URI=mongodb://127.0.0.1:27017/kobra-kai
JWT_SECRET=your_jwt_secret_here
## Install the React Client npm packages
cd ../client
npm install
npm run dev
Client will run on http://localhost:3000