-
Clone Backend Repository:
- Clone the backend repository from GitHub using the following command:
git clone https://github.com/NishithP2004/projectx-backend.git
- Clone the backend repository from GitHub using the following command:
-
Navigate to Backend Directory:
- Move into the
projectx-backend
directory:cd projectx-backend
- Move into the
-
Create Environment Variables File:
- Create a
.env
file in the root of theprojectx-backend
directory. - Copy the contents of the
.env.example
file provided below and paste it into the.env
file. - Fill in the required values for your environment variables. Refer to the comments in the
.env.example
file for guidance on each variable.
- Create a
-
Install Dependencies:
- Install the necessary dependencies by running:
npm install
- Install the necessary dependencies by running:
-
Start Backend Service:
- Ensure you have Microsoft Azure CLI tools installed.
- Start the backend service using the Azure Functions Core Tools:
func start
-
Access Backend Endpoints:
- Once the backend service is running, you can access the various API endpoints provided by the backend component.
G_SEARCH_KEY=
G_CX=
BING_CONFIG_ID=
BING_API_KEY=
GOOGLE_PALM_API_KEY=
GOOGLE_VERTEX_AI_TOKEN=
GOOGLE_VERTEX_AI_PROJECT_ID=
YT_API_KEY=
GOOGLE_APPLICATION_CREDENTIALS=
AZURE_STORAGE_CONNECTION_STRING=
AZURE_STORAGE_ACCOUNT_NAME=
AZURE_STORAGE_CONTAINER_NAME=
AZURE_FR_KEY=
AZURE_FR_ENDPOINT=
MONGO_NAMESPACE=
PORT=
BASE_URL="http://localhost:7071"