This project uses ASP.NET Core (VERSION: 8) for the backend. There are two methods that you could use to set up the development environment. One is to set up the environment locally in your machine which requires certain pre-requisites to be installed on your machine. The Second method is to use docker. The following are the steps outlined to do the same.
-
ASP.NET: Framework for building applications with C#
-
Git: To clone the repository and for Version Control
- First Make sure that the above pre-requisites are installed successfully, by typing the following commands on the command line
dotnet --version
git --version- Clone the repository
git clone https://github.com/MS-Girls/CLIMB-BE- Navigate to the frontend directory and install the packages
cd CLIMB-BE
dotnet add package .- Set up environment variables
Create a .env file and the add the following environment variables
AZURE_STORAGE_CONNECTION_STRING=
AZURE_RESUMES_CONTAINER_NAME=
AZURE_PROBLEMS_CONTAINER_NAME=
AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT=
AZURE_DOCUMENT_INTELLIGENCE_API_KEY=
ENDPOINTURL=
KEY=- To Start the server execute
dotnet run- The local URL where your backend is available shall be displayed in the terminal
-
Just make sure that docker is installed your system by typing the command
docker -von your command line -
Also you require Git to be installed inorder to clone the repository
- Clone the repository and navigate to the frontend
git clone https://github.com/MS-Girls/CLIMB-BE
cd CLIMB-BE- Set up environment variables
Create a .env file and set up the environment variables
- To build docker image and start the container execute
docker build -t CLIMB-backend:latest .
docker run -d -p 8000:80 --env-file .env --name CLIMB-backend CLIMB-backend:latest- Now your backend shall be accessible via
http://localhost:8000