Skip to content

Repository files navigation

Digi-Cry

Dependencies

📝 Description

Your personal, interactive mood journaling web application

Tracks moods over time via Google Cloud Natural Language sentiment analysis and offers motivational quotes, local events, and a supportive community forum.

Table of Contents

  1. About the Project
  2. Key Features
  3. Tech Stack
  4. Getting Started
    1. Prerequisites
    2. Installation
    3. Environment Variables
    4. Seed Data
  5. Usage
  6. APIs & Services
  7. Contact

📂 About the Project

Digi-Cry is a web application designed to help users reflect on their emotional well-being through journal entries. By leveraging the Google Cloud Natural Language API, each entry is analyzed for sentiment, allowing users to visualize mood trends over time. The app also fosters a supportive environment by providing:

  • Motivational quotes to lift spirits.
  • Local event recommendations (to encourage community engagement).
  • A forum system for users to discuss topics, goals, and challenges together.

🎯 Key Features

  1. User Authentication
    • Utilizes Google OAuth/Passport for easy login.
  2. Motivational Quotes
    • Fetches quotes from the Stoic Tekloon API to inspire users upon each visit.
  3. Journal Functionality
    • Create, Read, Update, and Delete (CRUD) journal entries.
    • Each entry is analyzed for sentiment score and magnitude.
  4. Mood Analytics
    • Visualize mood trends over time with data-rich charts.
    • Quick snapshot on the home page plus a detailed analytics page.
  5. Local Event Discovery
    • Geolocation-based event finding
    • Google Maps integration
    • SERP API event searching
    • Event details with dates and locations
    • Direct links to event pages
  6. Community Forums
    • Five focused categories:
      1. Physical Health
      2. Finances
      3. Personal Development
      4. Mental Health
      5. Career
  • Post creation and viewing
  • Like system for engagement
  • AI Goal Analysis powered by Google's Gemini AI
  • Recent posts feed

🛠️ Tech Stack


🚀 Getting Started

Prerequisites

  1. Node.js (version 16+ recommended)
  2. npm (version 8+ recommended) or Yarn
  3. MongoDB - Make sure you have a local or remote MongoDB instance ready.
  4. Google Cloud Project with Natural Language API enabled (to get the proper credentials).

Installation

  1. Clone the repository
git clone https://github.com/your-username/digicry.git
cd digicry
  1. Install dependencies
npm install
  1. Set up environment variables
cp .env.example .env

Edit .env with your API keys and configuration


Environment Variables

GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
PORT=5000
HOME_URL=http://localhost:8080/
SERVER_URL=http://localhost:5000/
CALLBACK_URL
DEPLOYMENT=FALSE
GOOGLE_MAPS_API_KEY
EVENTS_API_KEY
AI_API_KEY

🌱 Seed Data

To seed the database with sample journal entries:

npm run server
# In a new terminal:
node server/db/seed/js

🔧 Usage

  • npm run dev: Start both frontend and backend in development mode
  • npm run server: Start backend server only
  • npm run client: Start frontend client only
  • npm run build: Build the production version
  • npm run start-prod: Start production server
  • npm run lint: Run ESLint
  • npm run clean-deps: Clean and reinstall dependencies

🔗 APIs & Services

Contact

👥 Team


🙏 Acknowledgments

  • All contributors who have helped shape this project

Made with ❤️ by The 404's

Screenshot 2025-01-18 104325 Screenshot 2025-01-18 104128 Screenshot 2025-01-18 104213 Screenshot 2025-01-18 104235 Screenshot 2025-01-18 104307

About

Greenfield Project

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages