Skip to content

thuttinpasseron/workshops_on_demand_server

This branch is 18 commits ahead of, 1 commit behind bcornec/workshops_on_demand_server:master.

Folders and files

NameName
Last commit message
Last commit date
Apr 15, 2021
Jan 22, 2021
Jan 22, 2021
Oct 19, 2020
Apr 10, 2020
Jan 22, 2021
Oct 6, 2021
Oct 6, 2021
Jul 23, 2021
Oct 6, 2021
Oct 20, 2020
Jun 24, 2021
Jun 10, 2021
Oct 19, 2020
Feb 5, 2021
Jan 14, 2021
Sep 30, 2021
Oct 20, 2020
Oct 19, 2020
Oct 19, 2020
Oct 19, 2020
Oct 19, 2020
Apr 10, 2020
Jan 20, 2021
Jan 20, 2021
Jan 20, 2021

Repository files navigation

HPEDEV Hack Shack Workshops On Demand

Getting Started

This is a HPE-Developer-Community Hack Shack Workshops on Demand registration portal application.

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

  FROM_EMAIL_ADDRESS='' //email address to send email to registered customers
  SENDGRID_API_KEY="" //sendgrid api key to send emails
  PORT=               // run the backed server at port
  DB_PW=              // postgreSQL db password - you can set as you wish
  WORKSHOP_DURATION=  // you can ignore
  JUPYTER_EMAIL=''    // email of JupyterHub server to prepare notebooks
  FEEDBACK_URL=       // survey link
  PRODUCTION_API_SERVER=''  // swagger documentation
  JUPYTER_MOUGINS_LOCATION= // Mougins location name
  JUPYTER_GRENOBLE_LOCATION= // grenoble location name
  JUPYTER_GREENLAKE_LOCATION= // Greenlake location name
  POSTFIX_EMAIL_GRENOBLE=  // email of Postfix server in  Grenoble to send email
  POSTFIX_EMAIL_MOUGINS= // email of Postfix server in  Mougins to send email
  POSTFIX_EMAIL_GREENLAKE= // email of Postfix server in  Greenlake to send email
  POSTFIX_HOST_GRENOBLE= // Host of Postfix server in  Grenoble to send email
  POSTFIX_PORT_GRENOBLE=  // Port of Postfix server in  Grenoble to send email
  POSTFIX_HOST_MOUGINS=   // Host of Postfix server in  Mougins to send email
  POSTFIX_PORT_MOUGINS=   // Port of Postfix server in  Mougins to send email
  POSTFIX_HOST_GREENLAKE=   // Host of Postfix server in  Greenlake to send email
  POSTFIX_PORT_GREENLAKE=   // Port of Postfix server in  Greenlake to send email
  FEEDBACK_URL= // Feedback URL 
  PRODUCTION_API_SERVER= // Production API Server hostname to access swagger doc 
  NO_OF_STUDENT_ACCOUNTS= // total number of student accounts for each location
  SLACK_CHANNEL_WORKSHOPS_ON_DEMAND= // Slack channel ID for workshops on demand
  SESSION_TYPE_WORKSHOPS_ON_DEMAND= // workshops on demand session type
  SESSION_TYPE_CODING_CHALLENGE= // coding challenge session type
  SLACK_CHANNEL_CHALLENGES= // Slack channel ID for challenges
  1. Run the PostgreSQL database using docker-compose
$ docker-compose up
  1. In a new terminal run the backend server:
$ npm start
  1. Seed the database
$ cd server
$ npm run seed-data
  1. Reset the database
$ cd server
$ npm run reset-data

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%