SunbirdED Portal

The Sunbird portal is the browser-based interface for the Sunbird application stack. It provides a web-app through which all functionality of Sunbird can be accessed.

Getting started

To get started with the Sunbird portal, please try out our cloud-based demo site at: https://staging.sunbirded.org

Table of contents

Prerequisites

System Requirements

Operating System

MAC OS X 10.0 and above/Linux Windows (not verified). Take it with your own expertise(no community support but open for contribution).

RAM

> 6 Gb

CPU

2 cores, >2 GHz

Software dependencies

> 14.x.x (Install the latest release of LTS version)

> 11.x.x (Install the latest Angular CLI version)

Latest version of yarn: npm install --global yarn

Latest version of nodemon: npm install -g nodemon

Project Setup

  1. Clone project

    Note: Stable versions of the sunbird portal are available via tags for each release, and the master branch contains latest stable release. For latest stable release refer

  2. Install required dependencies

    1. Sunbird portal or web application

      1. $ cd {PROJECT-FOLDER}/src/app/client

      2. $ yarn install

    2. Sunbird services stack or the backend API interface

      1. $ cd {PROJECT-FOLDER}/src/app

      2. $ yarn install

  3. Configuring the Environment and Services Stack

    Configure the following system environment variables in the terminal which you have opened

    The initialization of these environmental variables can take place in a common place like in your .bashrc or .bash_profile

  4. Edit the Application Configuration

    Open <PROJECT-FOLDER>/src/app/helpers/environmentVariablesHelper.js in any available text editor and update the contents of the file so that it contains exactly the following values

    These are the mandatory keys required to run the application in Local environment. Please update them with appropriate values in <PROJECT-FOLDER>/src/app/helpers/environmentVariablesHelper.js

    Once the file is updated with appropriate values, then you can proceed with running the application

Running Application

  1. Sunbird portal or web application

    1. Run the following command in the {PROJECT-FOLDER}/src/app/client folder

    2. $ ng build --watch=true

    3. Wait for the build process to complete before proceeding to the next step

  2. Sunbird services stack or the backend API interface

    1. Run the following command in the {PROJECT-FOLDER}/src/app folder

    2. $ npm run server

  3. The local HTTP server is launched at http://localhost:3000

Project Structure

Testing

  1. Sunbird portal or web application

  2. Sunbird services stack or the backend API interface

Last updated