Full Stack Application β React + Azure Functions + Azure Cosmos DB (NoSQL)
This repository contains a complete full-stack Expense Tracker application built with:
- Frontend: React
- Backend: Azure Functions (Node.js)
- Database: Azure Cosmos DB (NoSQL API)
The project demonstrates cloud-native backend development, serverless APIs, and secure environment configuration using Azure services.
- User authentication (register & login)
- Expense tracking by date and category
- Savings and loan tracking
- User-specific settings
- Cloud-hosted serverless backend
- Secure database access using environment variables
expense-tracker-app/
β
βββ expense-tracker-frontend/
β βββ src/
β βββ public/
β βββ package.json
β βββ .env.local
β
βββ expense-tracker-backend/
β βββ src/
β β βββ functions/
β β βββ createUser/
β β βββ loginUser/
β β βββ addExpense/
β β βββ createSettingsForUser/
β βββ host.json
β βββ local.settings.json
β βββ package.json
β βββ .env.local
β
βββ README.md
- React
- React Router
- Fetch API
- Chart.js
- Azure Functions (Node.js)
- Azure Cosmos DB (NoSQL API)
- VS Code Azure Extensions
- Resource type: Azure Cosmos DB
- API: NoSQL
- Database:
expenseTrackerDB - Container:
expenses - Partition key:
/userId
- Azure Portal β Cosmos DB β Keys
- Copy Primary Connection String
- Runtime stack: Node.js
- Hosting plan: Consumption
- OS: Linux
Azure Portal β Function App β Configuration β Application Settings
COSMOS_CONNECTION=AccountEndpoint=...;AccountKey=...- Install Azure Tools Extension
- Sign in to Azure
- Manage functions remotely
git clone https://github.com/BlessedSiden1234/Expense-tracker-app.gitcd expense-tracker-backend
npm install
func startBackend URL:
http://localhost:7071
cd expense-tracker-frontend
npm install
npm startFrontend URL:
http://localhost:3000
REACT_APP_API_BASE_URL=https://<your-function-app>.azurewebsites.net/apiCOSMOS_CONNECTION=...REACT_APP_API_BASE_URL=....env.localfiles are ignored- Secrets are stored in Azure App Settings
- Backend and frontend deploy independently
- Firebase fully removed
- Serverless architecture for scalability
Blessed Siden
Full-Stack Engineer | Cloud & Serverless
GitHub: https://github.com/BlessedSiden1234