The Mentoring building block enables effective mentoring interactions between mentors and mentees. The capability aims to create a transparent eco-system to learn, connect, solve, and share within communities.MentorED is an open source mentoring application that facilitates peer learning and professional development by creating a community of mentors and mentees.
Elevate notification services can be setup in local using two methods:
Dockerized service with local dependencies(Intermediate)
Expectation: Run single docker containerized service with existing local (in host) or remote dependencies.
-
Update dependency (Kafka etc) IP addresses in .env with "host.docker.internal".
Eg:
#Kafka Host Server URL KAFKA_URL = host.docker.external:9092
-
Build the docker image.
/ELEVATE/notification$ docker build -t elevate/notification:1.0 .
-
Run the docker container.
-
For Mac & Windows with docker v18.03+:
$ docker run --name notification elevate/notification:1.0
-
For Linux:
$ docker run --name notification --add-host=host.docker.internal:host-gateway elevate/notification:1.0`
Refer this for more information.
-
-
Update dependency (Kafka etc) Ip addresses in .env with respective remote server IPs.
Eg:
#Kafka Host Server URL KAFKA_URL = 11.2.3.45:9092
-
Build the docker image.
/ELEVATE/notification$ docker build -t elevate/notification:1.0 .
-
Run the docker container.
$ docker run --name notification elevate/notification:1.0
Local Service with local dependencies(Hardest)
Expectation: Run single service with existing local dependencies in host (Non-Docker Implementation).
-
Install required tools & dependencies
Install any IDE (eg: VScode)
Install Nodejs: https://nodejs.org/en/download/
-
Clone the Notification service repository.
git clone https://github.com/ELEVATE-Project/notification.git
-
Add .env file to the project directory
Create a .env file in src directory of the project and copy these environment variables into it.
# Notification Service Config #Port on which service runs APPLICATION_PORT = 3000 #Application environment APPLICATION_ENV = development #Route after base url APPLICATION_BASE_URL = /notification/ #Kafka endpoint KAFKA_HOST = "localhost:9092" #kafka topic name KAFKA_TOPIC ="testTopic" #kafka consumer group id KAFKA_GROUP_ID = "notification" #sendgrid api key SENDGRID_API_KEY = "SG.sdssd.dsdsd.XVSDGFEBGEB.sddsd" #sendgrid sender email address SENDGRID_FROM_MAIL = "test@gmail.com"
-
Install Npm packages
ELEVATE/notification/src$ npm install
-
Start Notification server
ELEVATE/notification/src$ npm start
- Node - 16.0.0
- Kafka - 3.1.0
- Jest - 28.1.1
- MongoDB - 4.1.4
npm run test:integration
To know more about integration tests and their implementation refer to the project Wiki.
npm test
This project was built to be used with Mentoring Service and User Service.
The frontend/mobile application repo.
You can learn more about the full implementation of MentorEd here .
Several open source dependencies that have aided Mentoring's development: