π MoodSync - A Personal Expression Space
π Overview
MoodSync is a deeply personal full-stack Next.js application built for my friend. Whenever I miss her, Iβll post my feelings here. It serves as a digital space to log emotions, reflect on moments, and keep memories alive.
π οΈ Tech Stack
Frontend
- Framework: Next.js (App Router)
- Styling: Tailwind CSS
Backend
- API & Server: Next.js API Routes
- Database: MongoDB (via Mongoose ORM)
- Authentication: JWT-based authentication with localStorage
Deployment
- Hosting: Vercel
- Database: MongoDB Atlas
β¨ Features
- Personal Emotion Logging β A space to express thoughts and feelings.
- Secure & Private β Data is stored safely with authentication.
- Responsive UI β Works on mobile and desktop devices.
- Emotion History β View past emotions and relive memories.
π Getting Started
1οΈβ£ Clone the Repository
git clone https://github.com/bharatbhusal/emotions.git
cd emotions
2οΈβ£ Install Dependencies
pnpm install
# OR
npm install
# OR
yarn install
3οΈβ£ Set Up Environment Variables
Create a .env file and add:
MONGODB_URI=mongodb-string
PORT=8080
NODE_ENV=development
SECRET_KEY=<SECRET_KEY>
4οΈβ£ Run the Development Server
pnpm dev
# OR
npm run dev
# OR
yarn dev
The app will be available at http://localhost:3000.
π Deployment
Deploy on Vercel
- Install Vercel CLI:
pnpm add -g vercel - Run:
vercel - Follow the instructions to deploy.
π― API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/emotions | Fetch all emotions |
| POST | /api/emotions | Add a new emotion |
π‘ Why I Built This
This isn't just a project. Itβs my personal space where I write about my emotions, thoughts, and moments when I miss my friend. Every post is a piece of my heart. π
π License
This project is open-source under the MIT License.
π Built with love and memories by Bharat Bhusal