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

arun1205/program-service

 
 

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%