Skip to content

pathfindermilan/restio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

34 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌟 Personal Mood Synchronizer App 🌟

Restio web

Project Overview

The Restio is designed to enhance mental health and promote self-improvement through positive daily habits. This innovative application empowers users by integrating mindfulness practices, personalized mood analysis, and community support, helping individuals cultivate a more positive mindset in their daily lives. πŸ’ͺ✨

Features

  • πŸ§˜β€β™€οΈ Mindfulness and Meditation Exercises: Engage users with guided practices to manage stress and improve emotional well-being.
  • πŸ€– AI-Driven Mood Analysis: Utilize artificial intelligence to provide personalized content based on users' emotional states, ensuring relevant support.
  • 🀝 Community Support: Foster a collaborative environment where users can share experiences, uplift one another, and build a network of positivity.

Why This App Matters

In a world where mental health challenges are increasingly prevalent, this app addresses the urgent need for accessible tools that help individuals navigate their emotions. By promoting positive habits and fostering community connections, we can create a supportive space for everyone to thrive.

Getting Started

To get started with Restio:

  1. Clone the repository:

    git clone https://github.com/pathfindermilan/restio.git
  2. Run the fastapi AI app

    cd ai/
    cp .env.example .env
    vi .env
    • add your ARIA and ALLEGRO keys
    • save the env
    uv sync
    . .venv/bin/activate
    uvicorn api:app --host 127.0.0.1 --port 5000 --reload
    • more information about how to install uv python package manager πŸ‘‰ here
    • more information about how to obtain the env keys, visit πŸ‘‰ Rhymes AI
  3. Run the backend Go Gin gonic app

    Firstly run postgres instance

    docker run --name postgres-container -e POSTGRES_PASSWORD="password" -e POSTGRES_USER=postgres -e POSTGRES_DB=database_name -p 5432:5432 -d postgres
    cd backend/
    cp .env.example .env
    vi .env

    Add the following keys:

    Install Go Lang

    • follow this tutorial πŸ‘‰ Install

    Build the application

    go build -o server ./cmd/server/main.go

    Run the backend go lang application

    chmod +x server (optional)
    ./server
  4. Run the frontend NextJS application

    cd frontend
    cp .env.example .env
    vi .env

    Change the key

    Install node and npm from πŸ‘‰ Install node and npm or with the script below πŸ‘‡

    sudo apt-get update
    
    if ! command_exists curl; then
       sudo apt-get install -y curl
    fi
    
    curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
    sudo apt-get install -y nodejs
    if [ ! -f "/usr/bin/node" ]; then
        sudo ln -s "$(which node)" /usr/bin/node
    fi
    
     if [ ! -f "/usr/bin/npm" ]; then
         sudo ln -s "$(which npm)" /usr/bin/npm
     fi
    
     # Verify installation
     echo "Verifying installation..."
     echo "Node.js version:"
     node --version
     echo "npm version:"
     npm --version
    
     # Check symbolic links
     echo "Checking symbolic links..."
     ls -l /usr/bin/node
     ls -l /usr/bin/npm
    
     # Set permissions
     echo "Setting permissions..."
     sudo chmod 755 /usr/bin/node
     sudo chmod 755 /usr/bin/npm
    
     # Configure npm global settings
     echo "Configuring npm global settings..."
     sudo mkdir -p /usr/local/lib/node_modules
     sudo chown -R $USER:$(id -gn $USER) /usr/local/lib/node_modules
    
     # Verify paths
     echo "Verifying paths..."
     which node
     which npm
    
     # Print installation completed message
     echo "Installation completed successfully!"

    Install node modules

    npm install

    Build the directory

    npm run build

    Start the app

    npm run dev
  5. Your app is up and running on port 3000

If you want to test our app deployed on GCloud πŸ‘‡

RestiO

Overview

Part Deployed Locally
Frontend Frontend http://localhost:3000
Backend Backend http://localhost:8002
GenAI Aria&Allegro http://localhost:5000

Technologies Used

This project utilizes the following technologies:

  • Frontend: NextJS (v20.11.1)
  • πŸ–₯️ Backend: Go Gin Gonic, Fast Api
  • πŸ—„οΈ Database: PostgresSQL
  • πŸ€– AI Integration: Area&Allegro

Each technology is chosen to ensure scalability, performance, and ease of use, providing a robust foundation for our app.

Releases

No releases published

Packages

No packages published