Skip to content

CBIIT/CCDC-WebService

Repository files navigation

CCDC Backend

Table of Contents

  1. Prerequisites
  2. Set up repository
  3. Install Node.js packages
  4. Environment variables
  5. Start the backend

Prerequisites

  • Elasticsearch 7.17.10
  • MySQL 8.0.34.0
  • Node.js 16.18.0

Set up repository

Clone this repository with the command

git clone https://github.com/CBIIT/CCDC-WebService.git

Install Node.js packages

Run yarn install or npm install, depending on which package manager you use.

Environment variables

Create a .env file by making a copy of .env.example. Change the values of the environment variables in .env as appropriate.

For some reason, the following port configuration does not work:

  • Backend - 3001
  • Frontend - 3000

But this configuration does work:

  • Backend - 3000
  • Frontend - 3001

Start the backend

Ensure that Elasticsearh and MySQL are running, and then run the command

npm run start