This repository has been created to host a project created as a Technical test for Business Modelling Associates (BMA).
you should have some knowledge of running .net core projects and running npm commands in order to run this project
In order to run this project the following are the Pre-requisites:
- Visual Studio 2020 or any IDE of your choice that supports .net core projects
- Visual Studio Code or any IDE of your choice that supports Angular CLI projects
- .Net core frame work 3.1
- Node js v12.18.0
- npm version 6.14.4
- Get the latest code from the repository and start in Visual Studio or IDE of your choice
- Build the project if on your local machine a trust certificate (which is mandatory to run .net core APIs) is not added then it will be asked. you can get more help about it here. https://docs.microsoft.com/en-us/aspnet/core/security/authentication/certauth?view=aspnetcore-3.1
- Run the Test Api project. This should start a swagger portal as below:
4)You can test the current version of the API here, please use version number as 1 in order to test it. 5) Project should contain a 'ui' directory which holds the front end Angular 9 code. Please open a terminal on the ui directory path 6) Run 'npm install' which will download all necessary npm packages required to run the front end project. You may be asked to run 'npm audit fix' to resolve all dependencies. Please do if you have been asked to do so. 7) Run 'ng serve' to run the front end project. Once it is completed it will prompt to open the front end portal on http://localhost:4200/ 8) Make sure that the api is running on 'https://localhost:5001/' though which would be confirmed when swagger is up and running. Front End portal should look as below:
- You have already built the solution while launched the API but if you haven't then please build the main solution.
- Under the solution you can find a project called 'BmiTestApi.Tests'. Right click on it and select 'Run Unit Tests'. This will run the .net Unit Tests for Api controller.
This Project is covered under open source MIT License.