Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/.env
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
APPLICATION_PORT=3567
APPLICATION_PORT=3569
APPLICATION_ENV='development'
INSTALLED_PACKAGES="elevate-user elevate-mentoring elevate-notification elevate-scheduler"
REQUIRED_PACKAGES="elevate-user@1.1.3 elevate-mentoring@1.1.6"
SUPPORTED_HTTP_TYPES="GET POST PUT PATCH DELETE"
USER_SERVICE_BASE_URL='http://localhost:4567'
MENTORING_SERVICE_BASE_URL=''
NOTIFICATION_SERVICE_BASE_URL=''
SCHEDULER_SERVICE_BASE_URL=''
USER_SERVICE_BASE_URL='http://localhost:3001'
MENTORING_SERVICE_BASE_URL='http://localhost:3000'
NOTIFICATION_SERVICE_BASE_URL='http://localhost:3001'
SCHEDULER_SERVICE_BASE_URL='http://localhost:3001'
13 changes: 13 additions & 0 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@ require('module-alias/register')
const express = require('express')
const cors = require('cors')
require('dotenv').config({ path: './.env' })
const packageInstaller = require('./utils/packageInstaller')

let environmentData = require('./envVariables')()
if (!environmentData.success) {
console.error('Server could not start . Not all environment variable is provided')
process.exit()
}

packageInstaller(process.env.REQUIRED_PACKAGES).catch((error) => {
console.error(`An error occurred in package installer: ${error}`)
process.exit()
})

const app = express()
//const packageValidator = require('./utils/packageValidator');

Expand Down
Loading