Skip to content

Learnify is a course recommendation platform that helps users achieve their learning goals. It is an Angular and Node.js-based website that uses an AI model or data science to recommend a master course that is a set of different courses that the user will require to achieve their goal.

Notifications You must be signed in to change notification settings

sanchi-t/Learnify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learnify

Learnify is a comprehensive course recommendation platform designed to help users achieve their learning goals efficiently. The platform, built with Angular and Node.js, incorporates AI and data science functionalities using Python and Flask. PostgreSQL is employed as the database, and the entire application is containerized using Docker. For those interested in container orchestration, Kubernetes manifests are also provided.

Table of Contents

Introduction

Learnify is a course recommendation platform that enables users to input learning preferences, budget constraints, and weekly time commitments. Leveraging AI and data science, the platform generates a master course—a curated set of courses tailored to the user's objectives. The technology stack includes Angular for the frontend, Node.js for the backend, Python and Flask for AI/data science, and PostgreSQL as the database. Docker is employed for seamless deployment and scaling, with optional Kubernetes support.

Getting Started

Prerequisites

Before starting, ensure you have the following installed:

  • Node.js
  • Angular CLI
  • Python
  • Flask
  • PostgreSQL
  • Docker (optional)
  • Kubernetes (optional)

Local Setup

  1. Clone the Learnify repository:

    git clone https://github.com/sanchi-t/Learnify.git
    cd learnify
    
  2. Install frontend and backend dependencies:

    # Install frontend dependencies
    cd client
    npm install
    
    # Install backend dependencies
    cd ../server
    npm install
    
  3. Install Python Dependencies: Ensure you have the required Python dependencies installed for the AI/model component:

    # Install Python dependencies
    cd ../model
    pip install -r requirements.txt
    
  4. Create a .env file in the server folder with the following content:

    NODE_ENV=development
    PORT=<port>
    MODEL_API=<model api>
    POSTGRESQL_DB_HOST = <host>
    POSTGRESQL_DB_USER = <username>
    POSTGRESQL_DB_PASSWORD = <password>
    POSTGRESQL_DB = <database name>
    
    
  5. Create an environment.ts file in the client/src/environments folder with the following content:

    export const environment = {
    production: false,
    apiUrl: 'http://localhost:3000', // Adjust if necessary
    };
    
  6. Start the backend server:

    cd server
    node index
    
  7. In a separate terminal, start the Angular frontend:

    cd client
    ng serve
    
    
  8. Open your browser and navigate to http://localhost:4200 to access Learnify

Docker Usage

Docker images can be built using the provided Dockerfiles. Make sure Docker is installed.

  1. Build the backend Docker image:

    docker build -t learnify-backend -f server/Dockerfile .
    
    
  2. Build the frontend Docker image:

    docker build -t learnify-frontend -f client/Dockerfile .
    
  3. Build the flask Docker image:

    docker build -t learnify-model -f model/Dockerfile .
    
  4. Run Docker containers:

    docker run -d -p 3000:3000 learnify-backend
    docker run -d -p 8080:80 learnify-frontend
    docker run -d -p 5000:5000 learnify-frontend
    
    
    

Kubernetes Deployment

Kubernetes manifests are available in the kubernetes folder.

  1. Install kubectl: Follow the instructions here to install kubectl for your specific operating system.

  2. Install minikube: Follow the instructions here to install minikube for your specific operating system.

  3. Start minikube cluster:

    minikube start
    
  4. Apply the manifests:

    kubectl apply -f kubernetes/
    
    
  5. Access the Learnify application through the exposed services:

    minikube service learnify-frontend
    

Website Demonstration

learnify.mp4

UI Preview

WhatsApp Image 2023-11-21 at 10 17 50_f2b08ce2 WhatsApp Image 2023-11-21 at 10 18 35_f6113c82 WhatsApp Image 2023-11-21 at 10 17 50_107689e9 WhatsApp Image 2023-11-21 at 10 18 34_40c5cfa8 WhatsApp Image 2023-11-21 at 10 18 34_cbf59b3d WhatsApp Image 2023-11-21 at 10 18 34_3139bcf3 WhatsApp Image 2023-11-21 at 10 18 35_7b7a3764 WhatsApp Image 2023-11-21 at 10 18 36_2bc6b7c0 WhatsApp Image 2023-11-21 at 10 17 19_db5b2725 WhatsApp Image 2023-11-21 at 10 17 19_8fcb85e5

About

Learnify is a course recommendation platform that helps users achieve their learning goals. It is an Angular and Node.js-based website that uses an AI model or data science to recommend a master course that is a set of different courses that the user will require to achieve their goal.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •