A full-stack web application for tracking, storing, and managing user emotions securely over time.
Built using Svelte, Node.js (Express), and PostgreSQL, deployed on Azure with Nginx as a reverse proxy and PM2 for process management.
├── public/ # Static assets
├── src/
│ ├── components/ # Reusable UI components
│ └── Screens/ # Application screens/pages
├── app.js # Express backend
├── index.html
├── .env
├── .gitignore # Ignore build files and node_modules
├── Dockerfile
└── docker-compose.yml
Create a .env file in the backend root:
FRONTEND_URL=http://localhost:5173
DATABASE_URL=postgresql://user:password@host:port/dbname
MONGO_URL=mongodb://localhost:27017/dbname
npm install
node index.js
Backend runs on:
http://localhost:3000
npm install
npm run dev
| Endpoint | Method | Description |
|---|---|---|
/signin |
POST | Create user |
/login |
POST | Login user |
/save |
POST | Save emotion |
/data |
POST | Fetch emotions |
/logout |
POST | Logout current session |
/sessions |
POST | View active sessions |
/revoke |
POST | Revoke one session |
/revokeAll |
POST | Revoke all sessions |