Welcome to the Travel Expense Manager – because who doesn’t love tracking every penny while traveling?
This project is a full-stack app (React + Node.js/Express + MongoDB) that lets you submit, track, and analyze your travel expenses, so you can feel guilty about that extra coffee in Paris.
- Expense Submission: Log your travel, accommodation, meals, and “Other” (aka, shopping sprees) expenses.
- Budget Tracking: Set a monthly budget and watch yourself go over it in real time.
- Analytics: Pie charts and tables to show you exactly where your money went (spoiler: it’s always food).
- Group Splitting: Split expenses with friends, because nothing says “fun trip” like arguing over who owes what.
- Currency Conversion: Converts your expenses to USD, so you can cry in a single currency.
git clone https://github.com/RudraMudra/travel-expense.git
cd travel-expense
cd travel-expense-server
cp .env.example .env # Or just create .env and fill in your secrets
npm install
npm run dev # Or npm start if you like living dangerously
cd ../travel-expense-manager
npm install
npm start
- Copy
.env.example
to.env
in the backend folder. - Fill in your actual MongoDB URI, JWT secret, and Exchange Rate API key.
- If you push your real
.env
to GitHub, may the security gods have mercy on your soul.
- “username is required”: Your JWT probably doesn’t have a username. Fix your auth logic.
- CORS errors: Because the browser hates you. Make sure your backend allows requests from your frontend.
- MongoDB connection fails: Did you actually put your URI in
.env
? Or are you just hoping for the best? - Frontend/Backend not talking? Double-check your ports and URLs. Or just blame the network.
.env
is in.gitignore
. If you push it, that’s on you.- Don’t share your JWT secret. Seriously.
PRs welcome! Just don’t break anything. Or do, but leave a funny comment.
MIT – because why not.
Happy expense tracking!
(And remember: the real expense is the friends you made along the way.)