-
Notifications
You must be signed in to change notification settings - Fork 10
Getting Started
Niray Mak edited this page Jun 10, 2021
·
18 revisions
This wiki article explains the steps and tools that are necessary in order to get the backend services running.
The backend consist of the services:
- API (https://localhost:5001)
- Identity Server (https://localhost:5005)
- Database
- Notification system
The notification system is responsible for sending emails ( in the future this may be expanded with sending notifications to the frontend ) - Job Scheduler
The Job Scheduler is responsible for starting jobs every now and then. For now it is only used to check for graduating users. - Elastic Synchronizer
Elastic Synchronizer is an application which is responsible sending calls to the ElasticSearch instance to keep our MSSQL database up to date with the Elastic dataset.
- Clone this repository, using the following command:
git clone https://github.com/DigitalExcellence/dex-backend.git
- Browse to the folder of the repository
- Run the command:
docker-compose up
(If you want to run it in the background:docker-compose up -d
) (if you need to rebuild the images use:docker-compose up --build
) - After a short while, the services should be running and accessible on the urls mentioned in the about section
- When you visit the urls for the first time, you should trust the certificate
- When you want to stop the services from running, run the command:
docker-compose down
- Clone backend repository
- Open solution
- Right click -> Set as startup projects: Choose "Multiple startup projects" and select action 'Start' for 1_API and 6_IdentityServer
If the error below shows up your instance of RabbitMQ may not be running or the connection credentials ( appsettings.Development.json ) may be incorrect.
After launch: check if database is created by using SQL Server Object Explorer. To check if API is working:
- Use https://localhost:5001/index.html and click on Authorize.
- Select Scopes: 'dex-api'
- Use user: 'bob' password: 'bob' to authorize.
- Click one of the API requests and check for response.
- Clone backend repository.
- Open solution.
- Ga naar Run -> Edit Configurations.
- Press the + sign and add two .NET Projects, one for the API and one for the Identity server.
- Press the + sign and add a Compound.
- Press the made Compound and the the API and the Identity server.
Here is a video that shows these steps.
- Import both environment & collection .json files from backend repository in Postman.
- Make sure 'SSL certificate verification' setting in Postman is disabled.
- Collection: 'Digital-Excellence-API' should be under collections in the left panel. Environment 'Local' should be available in the top right corner of Postman.
More instruction about Postman can be found here: Postman guide