Skip to content

Backend Code #807

Open
pranjalisr wants to merge 2 commits into
BharatFD:mainfrom
pranjalisr:main
Open

Backend Code #807
pranjalisr wants to merge 2 commits into
BharatFD:mainfrom
pranjalisr:main

Conversation

@pranjalisr
Copy link
Copy Markdown

Backend code for hiring project
This is a multi-language FAQ system built with Node.js and Express.js, designed to handle frequently asked questions efficiently. It supports rich-text formatting, automatic translations, and high-performance caching for a seamless user experience.

Features

REST API for managing FAQs (Create, Read, Update, Delete)
Multi-language support
Rich-text formatting
MongoDB support

Security Note: Google API Keys

API keys for Google Translate are NOT included in this repo to prevent exposure of sensitive credentials. To use translations:

Obtain a Google Cloud API Key from Google Cloud Console.

Store it securely in .env file:

GOOGLE_API_KEY=your_api_key_here

Use it in your code like this:

const API_KEY = process.env.GOOGLE_API_KEY;

🛠 Setup & Installation

1️⃣ Clone the repo:

git clone https://github.com/your-repo/faq-system.git
cd faq-system

2️⃣ Install dependencies:

npm install

3️⃣ Set up environment variables (.env):

GOOGLE_API_KEY=your_api_key_here
REDIS_HOST=localhost
REDIS_PORT=6379
DATABASE_URL=your_db_url_here

4️⃣ Run the server:

npm start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant