Skip to content

Workshops-on-Demand/wod-api-db

Repository files navigation

API DB Server Workshops On Demand

This is a Workshops-on-Demand registration portal application. It provides an open API 3.0 based api used to manage the Workshops-on-Demand project. it also provides a Database hosting the different status of participants, workshops, students.

Getting Started

To run the backend server API, follow the steps below:

Prerequisites

You need to have node.js and a package manager; both npm (npm is installed with node.js) and yarn package manager.

  1. Install NPM modules
$ npm install or yarn install
  1. Configure environment
  • Server:
  • create a .env file using .env_example file
  $ cd server

  WODSENDER='' //hackshack email address to send email to registered customers
  WODSENDGRIDAPIKEY="" //sendgrid api key to send emails
  PORT=               // run the backed server at port
  WODPGDB=        // postgreSQL db database name - you can set as you wish
  WODPGUSER=        // postgreSQL db user - you can set as you wish
  WODPGPASSWD=        // postgreSQL db password - you can set as you wish
  JUPYTER_EMAIL=''    // email of JupyterHub server to prepare notebooks
  WODPOSTPORT=  // Port of Postfix server to send email
  FEEDBACK_URL= // Feedback URL 
  PRODUCTION_API_SERVER= // Production API Server hostname to access swagger doc 
  WODDENYLIST=example1.org,example2.org // mandatory list for the time being to blacklist these issuers
  1. Run the PostgreSQL database using docker compose
$ docker compose up
  1. In a new terminal run the api-db server:
$ npm start
  1. Seed the database
$ cd server
$ npm run seed-data
  1. Reset the database
$ cd server
$ npm run reset-data

About

WoD API and Database service

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors