Skip to content

Micro-service to create and manage programs, like a contribution program, etc.

License

Notifications You must be signed in to change notification settings

agamdahiya/program-service

This branch is 167 commits behind Sunbird-coKreat/program-service:master.

Folders and files

NameName
Last commit message
Last commit date
Jan 5, 2021
Apr 15, 2021
Feb 23, 2022
Jun 25, 2020
Mar 9, 2020
Mar 12, 2020
Feb 16, 2021
Mar 9, 2020
Jul 22, 2021
Jun 15, 2021
Mar 12, 2020
May 5, 2021
Sep 15, 2020
Jan 5, 2021

Repository files navigation

Sunbird Program Service

Prerequisites: Postgres, Node v12+

Run Locally

Clone the project

    https://github.com/Sunbird-Ed/program-service.git

Go to the project directory

    cd program-service

Install Git Submodules to make use of https://github.com/project-sunbird/sunbird-js-utils.git

    git submodule init
    git submodule update

Install dependencies

    cd src/
    npm install

Set the env variable in <project-folder>/src/envVariables.js

    baseURL: process.env.dock_base_url || 'http://dock.sunbirded.org',
    SUNBIRD_URL: process.env.sunbird_base_url || 'https://dev.sunbirded.org',
    SUNBIRD_PORTAL_API_AUTH_TOKEN: process.env.sunbird_api_auth_token

Start the server

    node app.js

the node app will run on http://localhost:6000

Note: To create Postgres table in the local db use the <project-folder>/programs.sql

About

Micro-service to create and manage programs, like a contribution program, etc.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%